Parcourir la source

Unifying STABLE and DEVEL where possible

Fredrik Jervfors il y a 21 ans
Parent
commit
2a672412df

+ 2 - 2
include/load_prefs.php

@@ -174,7 +174,7 @@ $reply_focus = getPref($data_dir, $username, 'reply_focus', '');
 $left_refresh = getPref($data_dir, $username, 'left_refresh', SMPREF_NONE );
 $left_refresh = strtolower($left_refresh);
 
-/** Load up the Signature file **/
+/* Load up the Signature file */
 $signature_abs = $signature = getSig($data_dir, $username, 'g');
 
 /* Message Highlighting Rules */
@@ -297,4 +297,4 @@ $delete_prev_next_display = getPref($data_dir, $username, 'delete_prev_next_disp
 
 do_hook('loading_prefs');
 
-?>
+?>

+ 5 - 4
include/options/display.php

@@ -80,9 +80,9 @@ function load_optpage_data_display() {
     );
 
     $css_values = array( 'none' => _("Default" ) );
-
-    if (is_readable(SM_PATH . 'themes/css') && is_dir(SM_PATH . 'themes/css')) {
-        $handle=opendir(SM_PATH . 'themes/css');
+    $css_dir = SM_PATH . 'themes/css';
+    if (is_readable($css_dir) && is_dir($css_dir)) {
+        $handle=opendir($css_dir);
         while ($file = readdir($handle) ) {
             if ( substr( $file, -4 ) == '.css' ) {
                 $css_values[$file] = substr( $file, 0, strlen( $file ) - 4 );
@@ -468,6 +468,7 @@ function save_option_header($option) {
  */
 function save_option_theme($option) {
     global $theme;
+
     /* Do checking to make sure $new_theme is in the array. */
     $theme_in_array = false;
     for ($i = 0; $i < count($theme); ++$i) {
@@ -530,4 +531,4 @@ function save_option_reply_prefix($option) {
 
 }
 
-?>
+?>

+ 1 - 1
include/options/folder.php

@@ -295,4 +295,4 @@ function save_option_draft_folder($option) {
     save_option($option);
 }
 
-?>
+?>

+ 7 - 7
include/options/personal.php

@@ -134,13 +134,13 @@ function load_optpage_data_personal() {
     if ( $tzChangeAllowed ) {
         $TZ_ARRAY[SMPREF_NONE] = _("Same as server");
         $tzfile = SM_PATH . 'locale/timezones.cfg';
-		if ((!is_readable($tzfile)) or (!$fd = fopen($tzfile,'r'))) {
-        	$message = _("Error opening timezone config, contact administrator.");
-		}
-		if (isset($message)) {
-	            plain_error_message($message, $color);
-	            exit;
-    	}
+        if ((!is_readable($tzfile)) or (!$fd = fopen($tzfile,'r'))) {
+            $message = _("Error opening timezone config, contact administrator.");
+        }
+        if (isset($message)) {
+            plain_error_message($message, $color);
+            exit;
+        }
         while (!feof ($fd)) {
             $zone = fgets($fd, 1024);
             if( $zone ) {

+ 2 - 1
include/validate.php

@@ -104,4 +104,5 @@ if ( $timeZone != SMPREF_NONE && ($timeZone != "")
     && $tzChangeAllowed ) {
     putenv("TZ=".$timeZone);
 }
-?>
+
+?>