* Fix bug #32517.
This commit is contained in:
@@ -11,6 +11,25 @@
|
||||
*/
|
||||
class admin extends control
|
||||
{
|
||||
/**
|
||||
* The gogs constructor.
|
||||
* @param string $moduleName
|
||||
* @param string $methodName
|
||||
*/
|
||||
public function __construct($moduleName = '', $methodName = '')
|
||||
{
|
||||
parent::__construct($moduleName, $methodName);
|
||||
|
||||
if(!isset($this->config->global->sn))
|
||||
{
|
||||
$this->loadModel('setting');
|
||||
$this->setting->setItem('system.common.global.sn', $this->setting->computeSN());
|
||||
|
||||
if(!isset($this->config->global)) $this->config->global = new stdclass();
|
||||
$this->config->global->sn = $this->setting->getItem('owner=system&module=common§ion=global&key=sn');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Index page.
|
||||
* @access public
|
||||
|
||||
Reference in New Issue
Block a user