Mnemo: Horde_Auth::removeHook() doesn't exist anymore
authorBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 02:22:33 +0000 (22:22 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 02:22:33 +0000 (22:22 -0400)
mnemo/lib/Forms/DeleteNotepad.php
mnemo/lib/Mnemo.php
mnemo/templates/panel.inc

index e98eeb5..8b98093 100644 (file)
@@ -75,7 +75,7 @@ class Mnemo_DeleteNotepadForm extends Horde_Form {
                 $identity = &Identity::singleton();
                 $name = $identity->getValue('fullname');
                 if (trim($name) == '') {
-                    $name = Horde_Auth::removeHook(Horde_Auth::getAuth());
+                    $name = Horde_Auth::getAuth();
                 }
                 $notepad = &$GLOBALS['mnemo_shares']->newShare(Horde_Auth::getAuth());
                 if (is_a($notepad, 'PEAR_Error')) {
index ce7f478..a4da090 100644 (file)
@@ -449,7 +449,7 @@ class Mnemo {
                     $identity = $GLOBALS['injector']->getInstance('Horde_Prefs_Identity')->getIdentity();
                     $name = $identity->getValue('fullname');
                     if (trim($name) == '') {
-                        $name = Horde_Auth::removeHook(Horde_Auth::getAuth());
+                        $name = Horde_Auth::getAuth();
                     }
                     $share = $GLOBALS['mnemo_shares']->newShare(Horde_Auth::getAuth());
                     $share->set('name', sprintf(_("%s's Notepad"), $name));
index 8d0a060..f67608a 100644 (file)
@@ -60,7 +60,7 @@ function sbarToggle()
  <h4><?php echo _("Shared Notepads:") ?></h4>
  <ul id="sharednotepads">
 <?php foreach (array_keys($shared_notepads) as $id): ?>
-      <li><label><input type="checkbox" class="checkbox" name="display_notepad[]" value="<?php echo htmlspecialchars($id) ?>"<?php echo (in_array($id, $display_notepads) ? ' checked="checked"' : '') . ' /> ' . ($shared_notepads[$id]->get('owner') ? '[' . htmlspecialchars(Horde_Auth::removeHook($shared_notepads[$id]->get('owner'))) . '] ' : '') . htmlspecialchars($shared_notepads[$id]->get('name')) ?></label></li>
+      <li><label><input type="checkbox" class="checkbox" name="display_notepad[]" value="<?php echo htmlspecialchars($id) ?>"<?php echo (in_array($id, $display_notepads) ? ' checked="checked"' : '') . ' /> ' . ($shared_notepads[$id]->get('owner') ? '[' . htmlspecialchars($shared_notepads[$id]->get('owner')) . '] ' : '') . htmlspecialchars($shared_notepads[$id]->get('name')) ?></label></li>
 <?php endforeach; ?>
  </ul>
 <?php endif; ?>