From bd0894bbbea1f5aeae9154706ca1a7bde77ef0b8 Mon Sep 17 00:00:00 2001 From: Jared Hancock <gravydish@gmail.com> Date: Mon, 23 Apr 2012 15:44:07 -0500 Subject: [PATCH] Fix case issues in function calls of new code --- setup/inc/class.upgrader.php | 4 ++-- setup/p.php | 6 +++--- setup/upgrade.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/inc/class.upgrader.php b/setup/inc/class.upgrader.php index c82ae721f..9e208426f 100644 --- a/setup/inc/class.upgrader.php +++ b/setup/inc/class.upgrader.php @@ -201,7 +201,7 @@ class Upgrader extends SetupWizard { //clear previous patch info - - unset($_SESSION['ost_upgrader'][$this->getSHash()]); + unset($_SESSION['ost_upgrader'][$this->getShash()]); //Load up post-upgrade tasks.... if any. $phash = substr(basename($patch), 0, 17); @@ -241,7 +241,7 @@ class Upgrader extends SetupWizard { /************* TASKS **********************/ function cleanup($tId=0) { - $file=$this->getSQLDir().$this->getSHash().'-cleanup.sql'; + $file=$this->getSQLDir().$this->getShash().'-cleanup.sql'; if(!file_exists($file)) //No cleanup script. return 0; diff --git a/setup/p.php b/setup/p.php index ebc4128b3..babeebb86 100644 --- a/setup/p.php +++ b/setup/p.php @@ -19,7 +19,7 @@ function staffLoginPage($msg) { } require '../scp/staff.inc.php'; -if(!$thisstaff or !$thisstaff->isadmin()) { +if(!$thisstaff or !$thisstaff->isAdmin()) { staffLoginPage('Admin Access Required!'); exit; } @@ -34,8 +34,8 @@ require_once INC_DIR.'class.upgrader.php'; $upgrader = new Upgrader($cfg->getSchemaSignature(), TABLE_PREFIX, SQL_DIR); //Just report the next action on the first call. -if(!$_SESSION['ost_upgrader'][$upgrader->getSHash()]['progress']) { - $_SESSION['ost_upgrader'][$upgrader->getSHash()]['progress'] = $upgrader->getNextAction(); +if(!$_SESSION['ost_upgrader'][$upgrader->getShash()]['progress']) { + $_SESSION['ost_upgrader'][$upgrader->getShash()]['progress'] = $upgrader->getNextAction(); Http::response(200, $upgrader->getNextAction()); exit; } diff --git a/setup/upgrade.php b/setup/upgrade.php index 324c467ef..040638370 100644 --- a/setup/upgrade.php +++ b/setup/upgrade.php @@ -22,7 +22,7 @@ function staffLoginPage($msg) { } require '../scp/staff.inc.php'; -if(!$thisstaff or !$thisstaff->isadmin()) { +if(!$thisstaff or !$thisstaff->isAdmin()) { staffLoginPage('Admin Access Required!'); exit; } -- GitLab