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

Fix case issues in function calls of new code

parent c8fee16d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
}
......
......@@ -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;
}
......
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