mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
PHP 5.4 reduce error of Create default object.
This commit is contained in:
parent
38b3fd2ce5
commit
eec20ea827
8 changed files with 22 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ class messageMobile extends messageView
|
|||
// Get configurations (using module model object)
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
if(!is_object($config)) $config = new stdClass;
|
||||
if(!$config->mskin) $config->mskin = 'default';
|
||||
// Set the template path
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->mskin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue