Revision 1430
Added by Dietmar over 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.2 ------------------------------------- |
14 |
09 Feb-2011 Build 1430 Dietmar Woellbrink (Luisehahne) |
|
15 |
# fix save settings dir and file mode (Tks to the community) |
|
14 | 16 |
09 Feb-2011 Build 1429 Dietmar Woellbrink (Luisehahne) |
15 | 17 |
# add forgotten javascript variable |
16 | 18 |
07 Feb-2011 Build 1428 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.2.RC5'); |
55 |
if(!defined('REVISION')) define('REVISION', '1429');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1430');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/admin/settings/save.php | ||
---|---|---|
148 | 148 |
$sql .= 'ORDER BY `name`'; |
149 | 149 |
|
150 | 150 |
$res_settings = $database->query($sql); |
151 |
|
|
151 |
$passed = false; |
|
152 | 152 |
while($setting = $res_settings->fetchRow()) |
153 | 153 |
{ |
154 | 154 |
$old_settings[$setting['name']] = $setting['value']; |
... | ... | |
158 | 158 |
switch ($setting_name) { |
159 | 159 |
case 'default_timezone': |
160 | 160 |
$value=$value*60*60; |
161 |
$passed = true; |
|
161 | 162 |
break; |
162 | 163 |
case 'string_dir_mode': |
163 | 164 |
$value=$dir_mode; |
165 |
$passed = true; |
|
164 | 166 |
break; |
165 | 167 |
case 'string_file_mode': |
166 | 168 |
$value=$file_mode; |
167 |
break; |
|
169 |
$passed = true; |
|
170 |
break; |
|
168 | 171 |
case 'pages_directory': |
169 | 172 |
break; |
170 | 173 |
default : |
171 |
|
|
174 |
$passed = in_array($setting_name, $allow_empty_values); |
|
172 | 175 |
break; |
173 | 176 |
} |
174 | 177 |
if (!in_array($setting_name, $allow_tags_in_fields)) |
... | ... | |
176 | 179 |
$value = strip_tags($value); |
177 | 180 |
} |
178 | 181 |
|
179 |
$passed = in_array($setting_name, $allow_empty_values); |
|
180 | 182 |
|
181 | 183 |
if ( !in_array($value, $disallow_in_fields) && (isset($_POST[$setting_name]) || $passed == true) ) |
182 | 184 |
{ |
Also available in: Unified diff
fix save settings dir and file mode (Tks to the community)