$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')) {
$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));
<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; ?>