Skip to content

Commit

Permalink
修正aotudisplay遗留的bug代码,thx nnhuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
speedphp committed Mar 6, 2017
1 parent c785fe9 commit 87c5b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/spController.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function display($tplname, $output = true, $check_exists = true)
public function auto_display($tplname)
{
if( TRUE != $this->v->displayed && FALSE != $GLOBALS['G_SP']['view']['auto_display']){
if( method_exists($this->v->engine, 'templateExists') && TRUE == $this->v->engine->templateExists($tplname))$this->display($tplname);
if( method_exists($this->v, 'templateExists') && TRUE == $this->v->templateExists($tplname))$this->display($tplname);
}
}

Expand Down

0 comments on commit 87c5b8f

Please sign in to comment.