require_once dirname(__FILE__) . '/lib/base.php';
/* Redirect back to the options screen if ACL is not enabled. */
-$prefs_url = IMP::prefsURL(true);
+$prefs_url = Horde::getServiceLink('options', 'imp');
if ($prefs->isLocked('acl') || empty($_SESSION['imp']['acl'])) {
$notification->push(_("Folder sharing is not enabled."), 'horde.error');
header('Location: ' . $prefs_url);
$driver = Horde_Util::getFormData('fm_driver');
$fetch_url = Horde::applicationUrl('fetchmailprefs.php');
-$prefs_url = Horde_Util::addParameter(IMP::prefsURL(true), 'group', 'fetchmail', false);
+$prefs_url = Horde_Util::addParameter(Horde::getServiceLink('options', 'imp'), array('group' => 'fetchmail'), null, false);
$to_edit = null;
/* Handle clients without javascript. */
$t = new Horde_Template();
$t->setOption('gettext', true);
$t->set('navcell', Horde_Util::bufferOutput(array('Prefs_UI', 'generateNavigationCell'), 'filters'));
-$t->set('prefsurl', IMP::prefsURL(true));
+$t->set('prefsurl', Horde::getServiceLink('options', 'imp'));
$t->set('return_text', _("Return to Options"));
/* Get filter links. */
}
/**
- * Generates the URL to the prefs page.
- *
- * @param boolean $full Generate full URL?
- *
- * @return string The URL to the IMP prefs page.
- */
- static public function prefsURL($full = false)
- {
- return Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php', $full), array('app' => 'imp'));
- }
-
- /**
* Get message indices list.
*
* @param mixed $indices The following inputs are allowed:
$t->set('use_pgp_help', Horde_Help::link('imp', 'pgp-overview'));
}
}
-$t->set('prefsurl', IMP::prefsURL(true));
+$t->set('prefsurl', Horde::getServiceLink('options', 'imp'));
echo $t->fetch(IMP_TEMPLATES . '/pgp/pgp.html');
if (!$chunk) {
$t->set('use_smime_label', Horde::label('use_smime', _("Enable S/MIME functionality?")));
}
}
-$t->set('prefsurl', IMP::prefsURL(true));
+$t->set('prefsurl', Horde::getServiceLink('options', 'imp'));
echo $t->fetch(IMP_TEMPLATES . '/smime/smime.html');
if (!$chunk) {