插件,视图渲染bug
This commit is contained in:
@@ -40,7 +40,7 @@ class Devteam extends Addons{
|
|||||||
$config = $this->getConfig();
|
$config = $this->getConfig();
|
||||||
$this->assign('addons_config', $config);
|
$this->assign('addons_config', $config);
|
||||||
if($config['display']){
|
if($config['display']){
|
||||||
$this->template('widget');
|
echo $this->fetch('widget');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ class Sitestat extends Addons{
|
|||||||
$info['category'] = db('Category')->count();
|
$info['category'] = db('Category')->count();
|
||||||
$info['model'] = db('Model')->count();
|
$info['model'] = db('Model')->count();
|
||||||
$this->assign('info',$info);
|
$this->assign('info',$info);
|
||||||
$this->template('index/info');
|
echo $this->fetch('index/info');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ class Systeminfo extends Addons {
|
|||||||
|
|
||||||
$this->assign('addons_config', $config);
|
$this->assign('addons_config', $config);
|
||||||
if ($config['display']) {
|
if ($config['display']) {
|
||||||
$this->template('widget');
|
echo $this->fetch('widget');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user