From 8f8b88e722860a4ff66a1221fabfdefeacd6d561 Mon Sep 17 00:00:00 2001 From: eSilverStrike Date: Wed, 6 Nov 2019 12:58:54 -0500 Subject: [PATCH] Fix for missing variable decleration in install --- .../admin/install/classes/installer.class.php | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/public_html/admin/install/classes/installer.class.php b/public_html/admin/install/classes/installer.class.php index 65edf5ecb..8d7984bf1 100644 --- a/public_html/admin/install/classes/installer.class.php +++ b/public_html/admin/install/classes/installer.class.php @@ -198,7 +198,7 @@ public function getAlertMessage($message, $type = 'notice', $title = '') } $retval .= '
'; $retval .= '' . $type . ' ' . $message . '
' . PHP_EOL; - + return $retval; } @@ -697,7 +697,7 @@ private function checkPermissions() $paths['public_html/'] . 'images/_thumbs/articles/', // Used by File Manager when launched from Geeklog Control Panel. Article Editor also stores article thumbnail images here $paths['public_html/'] . 'images/_thumbs/userphotos/', // Used by File Manager when launched from Geeklog Control Panel ); - + if ($_DB_dbms === 'mysql') { array_splice($fileList, 1, 0, $this->env['gl_path'] . 'backups/'); } @@ -721,13 +721,13 @@ private function checkPermissions() $checkSelinux = true; $cmdSelinux .= $file . ' '; } - + $retval_permissions .= ' ' . $file . ' ' . $this->LANG['INSTALL'][12] . ' ' . $permShouldBe . ' (' . $this->LANG['INSTALL'][13] . ' ' . $permission . ') '; - + $chmodString .= $file . ' '; $numWrong++; } @@ -897,7 +897,7 @@ public function getHelpLink($var) global $LANG_HELP, $LANG_LABEL; $id = 'help-' . $var; - + return ''; } @@ -2940,10 +2940,10 @@ private function doDatabaseUpgrades($currentGlVersion, $checkForMessage = false) break; case '2.1.2': // there were no database changes in 2.1.2 - + $currentGlVersion = '2.1.3'; break; - + case '2.1.3': require_once $_CONF['path'] . 'sql/updates/' . $_DB_dbms . '_2.1.3_to_2.2.0.php'; if ($checkForMessage) { @@ -2959,7 +2959,7 @@ private function doDatabaseUpgrades($currentGlVersion, $checkForMessage = false) } $currentGlVersion = '2.2.0'; $_SQL = array(); - break; + break; case '2.2.0': require_once $_CONF['path'] . 'sql/updates/' . $_DB_dbms . '_2.2.0_to_2.2.1.php'; @@ -2975,7 +2975,7 @@ private function doDatabaseUpgrades($currentGlVersion, $checkForMessage = false) } $currentGlVersion = '2.2.1'; break; - + default: $done = true; break; @@ -4905,6 +4905,12 @@ private function installEngine($installType, $installStep) */ public function display($content) { + // Need to do this for install-plugins.php when called for a new install but want to select plugins + if (!isset($this->env['language_selector_menu'])) { + $this->env['language_selector'] = ''; + $this->env['language_selector_menu'] = 'uk-hidden'; + } + $this->env['content'] = $content; $T = $this->getTemplateObject(); $T->set($this->env);