Skip to content

Commit

Permalink
Fix for missing variable decleration in install
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Nov 6, 2019
1 parent 352a683 commit 8f8b88e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions public_html/admin/install/classes/installer.class.php
Expand Up @@ -198,7 +198,7 @@ public function getAlertMessage($message, $type = 'notice', $title = '')
}
$retval .= '<div class="uk-alert uk-alert-' . $style . '">';
$retval .= '<span class="uk-label uk-label-' . $style . '">' . $type . '</span> ' . $message . '</div>' . PHP_EOL;

return $retval;
}

Expand Down Expand Up @@ -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/');
}
Expand All @@ -721,13 +721,13 @@ private function checkPermissions()
$checkSelinux = true;
$cmdSelinux .= $file . ' ';
}

$retval_permissions .= '
<tr>
<td><code>' . $file . '</code></td>
<td><span class="uk-text-danger uk-text-nowrap">' . $this->LANG['INSTALL'][12] . ' ' . $permShouldBe . '</span> (' . $this->LANG['INSTALL'][13] . ' ' . $permission . ')</td>
</tr>';

$chmodString .= $file . ' ';
$numWrong++;
}
Expand Down Expand Up @@ -897,7 +897,7 @@ public function getHelpLink($var)
global $LANG_HELP, $LANG_LABEL;

$id = 'help-' . $var;

return '<span uk-icon="icon: info" uk-tooltip="' . htmlentities($LANG_HELP[$var]) . '"</span>';
}

Expand Down Expand Up @@ -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) {
Expand All @@ -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';
Expand All @@ -2975,7 +2975,7 @@ private function doDatabaseUpgrades($currentGlVersion, $checkForMessage = false)
}
$currentGlVersion = '2.2.1';
break;

default:
$done = true;
break;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8f8b88e

Please sign in to comment.