Skip to content

Commit

Permalink
* [MOD] Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxsmin committed Dec 26, 2015
1 parent 6ce7ade commit 35e8cd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/Init.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ public static function setIncludes()
public static function loadClass($class)
{
// Eliminar \\ para las clases con namespace definido
$class = (strripos($class, '\\')) ? substr($class, strripos($class, '\\') + 1) : $class;
if (strripos($class, '\\')) {
$class = substr($class, strripos($class, '\\') + 1);
}

// Buscar la clase en los directorios de include
foreach (explode(PATH_SEPARATOR, get_include_path()) as $includePath) {
Expand Down Expand Up @@ -543,11 +545,10 @@ private static function checkVersion()
$hash = Request::analyze('h');

if ($action === 'upgrade' && $hash === Config::getValue('upgrade_key', 0)) {
if (Upgrade::doUpgrade($databaseVersion)) {
if ($update = Upgrade::doUpgrade($databaseVersion)) {
ConfigDB::setValue('version', $appVersion);
Config::setValue('maintenance', false);
Config::deleteParam('upgrade_key');
$update = true;
}
} else {
$controller = new Controller\MainC();
Expand Down

0 comments on commit 35e8cd9

Please sign in to comment.