Переглянути джерело

Fix "Failed opening default pref" bug, closes #680331, thanks David Walser

Thijs Kinkhorst 22 роки тому
батько
коміт
fa2fad7ddc
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      functions/file_prefs.php

+ 1 - 1
functions/file_prefs.php

@@ -179,7 +179,7 @@ function checkForPrefs($data_dir, $username, $filename = '') {
     /* Then, check if the file exists. */
     /* Then, check if the file exists. */
     if (!@file_exists($filename) ) {
     if (!@file_exists($filename) ) {
         /* First, check the $data_dir for the default preference file. */
         /* First, check the $data_dir for the default preference file. */
-        $default_pref = $data_dir . 'default_pref';
+        $default_pref = $data_dir . '/default_pref';
 
 
         /* If it is not there, check the internal data directory. */
         /* If it is not there, check the internal data directory. */
         if (!@file_exists($default_pref)) {
         if (!@file_exists($default_pref)) {