Permalink
Browse files

itemVersion : automatic language selection fix

  • Loading branch information...
scux
scux committed Jul 4, 2015
1 parent 51bf5fe commit 5991e184a832904c147d1f1cc03aca1cc6d7cbbd
Showing with 3 additions and 3 deletions.
  1. +1 −1 grandcentral/core/system/_item/itemVersion.php
  2. +2 −2 inc.autoload.php
@@ -21,7 +21,7 @@ public function guess()
// $_SESSION['user']['pref'] = $pref;
// si on a une version qui nous a été donnée par la classe boot
- if ($this->get_env() == 'site' && SITE_VERSION != null)
+ if ($this->get_env() == 'site' && defined('SITE_VERSION') && SITE_VERSION != null)
{
$param = SITE_VERSION;
}
View
@@ -126,6 +126,8 @@ private function get_config()
{
$param['url'] = $url;
$this->site = $param;
+ // version
+ $this->site['version'] = ($version !== 0) ? $version : null;
break 2;
}
}
@@ -140,8 +142,6 @@ private function get_config()
}
}
}
- // version
- $this->site['version'] = ($version !== 0) ? $version : null;
$this->admin = $admin;
$this->admin['root'] = $this->root.'/'.self::admin_dir;

0 comments on commit 5991e18

Please sign in to comment.