| @@ -37,11 +37,12 @@ | ||
| 37 | 37 | private static $CNT = 0; |
| 38 | 38 | private static $_HOOKED_FOOTER = false; |
| 39 | 39 | |
| 40 | 40 | private function __construct( $id, $on = false, $echo = false ) { |
| 41 | + $bt = debug_backtrace(); | |
| 42 | + | |
| 41 | 43 | $this->_id = $id; |
| 42 | 44 | |
| 43 | - $bt = debug_backtrace(); | |
| 44 | 45 | $caller = $bt[2]; |
| 45 | 46 | |
| 46 | 47 | if ( false !== strpos( $caller['file'], 'plugins' ) ) { |
| 47 | 48 | $this->_file_start = strpos( $caller['file'], 'plugins' ) + strlen( 'plugins/' ); |
| @@ -141,9 +142,9 @@ | ||
| 141 | 142 | function get_file() { |
| 142 | 143 | return $this->_file_start; |
| 143 | 144 | } |
| 144 | 145 | |
| 145 | - private function _log( &$message, $type = 'log', $wrapper ) { | |
| 146 | + private function _log( &$message, $type, $wrapper = false ) { | |
| 146 | 147 | if ( ! $this->is_on() ) { |
| 147 | 148 | return; |
| 148 | 149 | } |
| 149 | 150 | |
| @@ -687,5 +688,5 @@ | ||
| 687 | 688 | return rtrim( $upload_dir['url'], '/' ) . $filename; |
| 688 | 689 | } |
| 689 | 690 | |
| 690 | 691 | #endregion |
| 691 | - } | |
| 692 | + } | |