Project

General

Profile

« Previous | Next » 

Revision 35

Added by Manuela over 6 years ago

fixed 'er_level' settings to E_ALL (-1)

View differences:

branches/main/admin/interface/version.php
37 37

  
38 38
// use
39 39

  
40
/* -------------------------------------------------------- */
40
if (!defined('VERSION_LOADED')) {
41 41
// Must include code to stop this file being accessed directly
42
if (!defined('SYSTEM_RUN')) { header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
42
    if (!defined('SYSTEM_RUN')) { header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
43 43
/* -------------------------------------------------------- */
44
if (!defined('VERSION_LOADED')) {
45 44
    $sInfo = '
46 45
        VERSION  = "2.11.0-RC1"
47
        REVISION = "34"
46
        REVISION = "35"
48 47
        SP       = ""
49 48
    ';
50 49
    foreach (parse_ini_string($sInfo) as $item=>$value) {
branches/main/admin/settings/index.php
243 243
/*---------------------------------------------------------------------------------------------------*/
244 244
    // Insert default error reporting values
245 245
    $template->set_block('show_php_error_level_block', 'error_reporting_list_block',  'error_reporting_list');
246
    require(ADMIN_PATH.'/interface/er_levels.php');
247
    foreach($ER_LEVELS AS $value => $title)
248
    {
249
        $template->set_var('VALUE', $value);
250
        $template->set_var('NAME', $title);
251
        $template->set_var('SELECTED', ((ER_LEVEL == $value) ? ' selected="selected"' : '') );
246
        $template->set_var(['VALUE'=>'-1', 'NAME'=>'E_ALL', 'SELECTED'=>' selected="selected"']);
252 247
        $template->parse('error_reporting_list', 'error_reporting_list_block', true);
253
    }
254 248
/*-------------------------------------------------------------------------------------*/
255 249
    // Insert WYSIWYG modules
256 250
    $template->set_block('show_wysiwyg_block', 'wysiwyg_list_block', 'wysiwyg_list');
branches/main/admin/settings/save.php
242 242
            case 'wb_version':
243 243
                continue;
244 244
                break;
245
            case 'er_level':
246
                $value = '-1';
247
                $passed = true;
248
                break;
245 249
            default :
246 250
                $passed = in_array($setting_name, $allow_empty_values);
247 251
                break;

Also available in: Unified diff