if ($hordeauth) {
$reason = Auth::isAuthenticated();
} else {
- $auth_imp = &Auth::singleton(array('imp', 'imp'));
+ $auth_imp = Auth::singleton(array('imp', 'imp'));
$reason = $auth_imp->authenticate(null, array(), false);
}
{
require_once 'Horde/Text.php';
- $imp_folder = &IMP_Folder::singleton();
+ $imp_folder = IMP_Folder::singleton();
/* Don't filter here - since we are going to parse through every
* member of the folder list below anyway, we can filter at that time.
}
}
if (($permission == 'max_folders') && !$value) {
- $folder = &IMP_Folder::singleton();
+ $folder = IMP_Folder::singleton();
$allowed = $allowed > count($folder->flist_IMP(array(), false));
}
return false;
}
- $quotaDriver = &IMP_Quota::singleton($_SESSION['imp']['quota']['driver'], $_SESSION['imp']['quota']['params']);
+ $quotaDriver = IMP_Quota::singleton($_SESSION['imp']['quota']['driver'], $_SESSION['imp']['quota']['params']);
if ($quotaDriver === false) {
return false;
}
{
/* Get the identities. */
require_once 'Horde/Identity.php';
- $identity = &Identity::singleton(array('imp', 'imp'));
+ $identity = Identity::singleton(array('imp', 'imp'));
return (($mbox == self::folderPref($GLOBALS['prefs']->getValue('drafts_folder'), true)) || in_array($mbox, $identity->getAllSentmailFolders()));
}
if (empty($cache_type) ||
$cache_type == 'none' ||
(($cache_type == 'horde_cache') &&
- !($cache = &self::getCacheOb()))) {
+ !($cache = self::getCacheOb()))) {
Horde::includeScriptFiles();
return;
}
if (empty($cache_type) ||
$cache_type == 'none' ||
(($cache_type == 'horde_cache') &&
- !($cache = &self::getCacheOb()))) {
+ !($cache = self::getCacheOb()))) {
$css_out = array_merge($css, $css_out);
} else {
$mtime = array(0);
*
* @return Horde_Cache A pointer to a Horde_Cache object.
*/
- static public function &getCacheOb()
+ public static function getCacheOb()
{
global $conf;
- $cache = &Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver']));
+ $cache = Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver']));
if (is_a($cache, 'PEAR_Error')) {
Horde::fatal($cache, __FILE__, __LINE__);
}