Massive update to plugin system architecture. Please test! Not all core plugins...
[squirrelmail.git] / functions / file_prefs.php
index 6c6f511e4f27a12d4b5ec19c443cdaab5671d4f9..84aae54d86a46b2fac5dad57d1a532afc5382ba5 100644 (file)
@@ -100,13 +100,13 @@ function cachePrefValues($data_dir, $username) {
 function getPref($data_dir, $username, $string, $default = '') {
     global $prefs_cache;
 
-    $result = do_hook_function('get_pref_override',array($username,$string));
+    $result = do_hook('get_pref_override', $temp=array(&$username, &$string));
     if (!$result) {
         cachePrefValues($data_dir, $username);
         if (isset($prefs_cache[$string])) {
             $result = $prefs_cache[$string];
         } else {
-            $result = do_hook_function('get_pref', array($username,$string));
+            $result = do_hook('get_pref', $temp=array(&$username, &$string));
             if (!$result) {
                 $result = $default;
             }