Skip to content
Snippets Groups Projects
Commit 721e4123 authored by Jared Hancock's avatar Jared Hancock
Browse files

lint: Fix E_STRICT warnings

Fixes #262
parent 8ee35dc9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
class Bootstrap {
function init() {
static function init() {
#Disable Globals if enabled....before loading config info
if(ini_get('register_globals')) {
ini_set('register_globals',0);
......
......@@ -362,8 +362,7 @@ class osTicket {
return null;
}
/* static */
function get_root_path($dir) {
static function get_root_path($dir) {
/* If run from the commandline, DOCUMENT_ROOT will not be set. It is
* also likely that the ROOT_PATH will not be necessary, so don't
......@@ -394,7 +393,8 @@ class osTicket {
* the osTicket installation. That is removed from SCRIPT_NAME.
* What's left is the ROOT_PATH.
*/
$frame = array_pop(debug_backtrace(false));
$bt = debug_backtrace(false);
$frame = array_pop($bt);
$file = str_replace('\\','/', $frame['file']);
$path = substr($file, strlen(ROOT_DIR));
if($path && ($pos=strpos($_SERVER['SCRIPT_NAME'], $path))!==false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment