Plugin Directory

Changeset 1712140


Ignore:
Timestamp:
08/11/2017 03:03:49 PM (9 years ago)
Author:
postpostmodern
Message:

v 1.9.6

Location:
dbug/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dbug/trunk/_plugin.php

    r1705800 r1712140  
    88Plugin URI:     https://github.com/pinecone-dot-website/dbug
    99Text Domain:   
    10 Version:        1.9.5
     10Version:        1.9.6
    1111
    1212This file must be parsable by php 5.2
  • dbug/trunk/lib/WP_Dbug/Dbug.php

    r1705800 r1712140  
    1313        /*
    1414        'error_handler' => '',              // 'screen' or 'log'
    15         'error_level' => 0,                 //
     15        'error_level' => [0],               //
    1616        'log_filesize' => 1048576,          // in bytes 1048576 = 1 megabyte
    1717        'log_path' => ''                    // absolute path to logs on server
     
    3434    protected function __construct()
    3535    {
     36        $this->settings = (array) get_option('dbug_settings');
     37
    3638        // set default error handling to screen to logs
    37         $this->settings = (array) get_option('dbug_settings');
    38        
    3939        $this->set_error_handler();
    4040    }
     
    150150            return $this->settings[$which];
    151151        }
    152 
     152       
    153153        switch ($which) {
    154154            case 'error_handler':
     
    157157
    158158            case 'error_level':
    159                 $val = get_option( 'dbug_error_level' );
     159                $val = (array) get_option( 'dbug_error_level' );
    160160                break;
    161161
    162162            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                }
    164167                break;
    165168
Note: See TracChangeset for help on using the changeset viewer.