Browse Source

Fix prefs so they work under 4.2 as well as 4.1.x. This really needs to
be fixed properly sometime though!

simond 23 năm trước cách đây
mục cha
commit
4ed73836fc
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      functions/prefs.php

+ 2 - 1
functions/prefs.php

@@ -16,7 +16,8 @@ global $prefs_are_cached, $prefs_cache;
 if ( !session_is_registered('prefs_are_cached') ||
 if ( !session_is_registered('prefs_are_cached') ||
      !isset( $prefs_cache) ||
      !isset( $prefs_cache) ||
      !is_array( $prefs_cache) ||
      !is_array( $prefs_cache) ||
-     substr( phpversion(), 0, 3 ) == '4.1'  ) {
+     substr( phpversion(), 0, 3 ) == '4.1' ||
+     substr( phpversion(), 0, 3 ) == '4.2' ) {
     $prefs_are_cached = false;
     $prefs_are_cached = false;
     $prefs_cache = array();
     $prefs_cache = array();
 }
 }