Remove IMP::prefsURL()
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 18:59:41 +0000 (12:59 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 29 Jul 2009 18:59:41 +0000 (12:59 -0600)
imp/acl.php
imp/fetchmailprefs.php
imp/filterprefs.php
imp/lib/IMP.php
imp/pgp.php
imp/smime.php

index cd75a8c..91bbe57 100644 (file)
@@ -15,7 +15,7 @@
 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);
index 6eeceb5..3de6c80 100644 (file)
@@ -17,7 +17,7 @@ $fm_account = new IMP_Fetchmail_Account();
 
 $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. */
index 02a1d71..38159a4 100644 (file)
@@ -52,7 +52,7 @@ Prefs_UI::generateHeader(null, $chunk);
 $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. */
index 674cfe9..b61f111 100644 (file)
@@ -774,18 +774,6 @@ class IMP
     }
 
     /**
-     * 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:
index 069af6b..67adb0e 100644 (file)
@@ -389,7 +389,7 @@ if ($prefs->getValue('use_pgp')) {
         $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) {
index 1726895..d767c25 100644 (file)
@@ -292,7 +292,7 @@ if ($openssl_check && $prefs->getValue('use_smime')) {
         $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) {