More rg=0
[squirrelmail.git] / themes / random.php
index a6e0444..765da38 100755 (executable)
@@ -14,6 +14,8 @@
  */
 
 sq_mt_randomize();
+
+require_once(SM_PATH . 'functions/global.php');
    
 global $theme, $random_theme_good_themes;
    
@@ -28,7 +30,7 @@ if (!session_is_registered('random_theme_good_theme')) {
     $good_themes[] = '../themes/default.php';
     $which = mt_rand(0, count($good_themes));
     $random_theme_good_theme = $good_themes[$which];
-    session_register('random_theme_good_theme');
+    sqsession_register($random_theme_good_theme, 'random_theme_good_theme');
 }
    
 @include_once ($random_theme_good_theme);