Fixed issue with setting the template to false
Magic getter was overwriting the value because it was == null. Updated Module to check if the value isset() and if not, try to load from the config or set to false.
This commit is contained in:
parent
7660ddc768
commit
553f70fdb8
2 changed files with 4 additions and 4 deletions
|
@ -146,7 +146,7 @@ class Module extends Object
|
|||
* display engine determines what the file extension should be.
|
||||
*
|
||||
* @access protected
|
||||
* @var string, null by default
|
||||
* @var string, 'index' by default
|
||||
*/
|
||||
protected $template = 'index';
|
||||
|
||||
|
@ -211,7 +211,7 @@ class Module extends Object
|
|||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
if ($this->$name == null)
|
||||
if (!isset($this->$name))
|
||||
{
|
||||
if (isset($this->config->pickles[$name]))
|
||||
{
|
||||
|
|
4
jar.php
4
jar.php
|
@ -5345,7 +5345,7 @@ class Module extends Object
|
|||
* display engine determines what the file extension should be.
|
||||
*
|
||||
* @access protected
|
||||
* @var string, null by default
|
||||
* @var string, 'index' by default
|
||||
*/
|
||||
protected $template = 'index';
|
||||
|
||||
|
@ -5410,7 +5410,7 @@ class Module extends Object
|
|||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
if ($this->$name == null)
|
||||
if (!isset($this->$name))
|
||||
{
|
||||
if (isset($this->config->pickles[$name]))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue