Changeset 1712140
- Timestamp:
- 08/11/2017 03:03:49 PM (9 years ago)
- Location:
- dbug/trunk
- Files:
-
- 2 edited
-
_plugin.php (modified) (1 diff)
-
lib/WP_Dbug/Dbug.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dbug/trunk/_plugin.php
r1705800 r1712140 8 8 Plugin URI: https://github.com/pinecone-dot-website/dbug 9 9 Text Domain: 10 Version: 1.9. 510 Version: 1.9.6 11 11 12 12 This file must be parsable by php 5.2 -
dbug/trunk/lib/WP_Dbug/Dbug.php
r1705800 r1712140 13 13 /* 14 14 'error_handler' => '', // 'screen' or 'log' 15 'error_level' => 0,//15 'error_level' => [0], // 16 16 'log_filesize' => 1048576, // in bytes 1048576 = 1 megabyte 17 17 'log_path' => '' // absolute path to logs on server … … 34 34 protected function __construct() 35 35 { 36 $this->settings = (array) get_option('dbug_settings'); 37 36 38 // set default error handling to screen to logs 37 $this->settings = (array) get_option('dbug_settings');38 39 39 $this->set_error_handler(); 40 40 } … … 150 150 return $this->settings[$which]; 151 151 } 152 152 153 153 switch ($which) { 154 154 case 'error_handler': … … 157 157 158 158 case 'error_level': 159 $val = get_option( 'dbug_error_level' );159 $val = (array) get_option( 'dbug_error_level' ); 160 160 break; 161 161 162 162 case 'log_filesize': 163 $val = get_option( 'dbug_log_filesize' ); 163 $val = (int)get_option( 'dbug_log_filesize' ); 164 if ($val < 1) { 165 $val = 1048576; 166 } 164 167 break; 165 168
Note: See TracChangeset
for help on using the changeset viewer.