update
This commit is contained in:
parent
88f6450179
commit
df89f97413
|
@ -149,7 +149,7 @@ class Index extends Controller
|
|||
if (!empty($config['index_page_style']) && $config['index_page_style'] != 1) { //下拉选择的其他模板
|
||||
$template = $config['index_page_style'];
|
||||
|
||||
$template = str_replace('__WWWW__', app()->getRootPath(), $template);
|
||||
$template = str_replace('__WWW__', app()->getRootPath(), $template);
|
||||
|
||||
if (!is_file($template)) { //其他模板不存在,回到默认
|
||||
$template = 'index';
|
||||
|
@ -562,7 +562,7 @@ class Index extends Controller
|
|||
} else { //其他
|
||||
$template = $config['login_page_style'];
|
||||
|
||||
$template = str_replace('__WWWW__', app()->getRootPath(), $template);
|
||||
$template = str_replace('__WWW__', app()->getRootPath(), $template);
|
||||
|
||||
if (!is_file($template)) { //其他模板不存在,回到默认3
|
||||
$template = 'login3';
|
||||
|
|
|
@ -128,7 +128,7 @@ class Module extends baseModule
|
|||
*/
|
||||
public function addIndexView($path, $title)
|
||||
{
|
||||
$path = str_replace(app()->getRootPath(), '__WWWW__', $path);
|
||||
$path = str_replace(app()->getRootPath(), '__WWW__', $path);
|
||||
|
||||
$this->indexViews[$path] = $title;
|
||||
return $this;
|
||||
|
@ -153,7 +153,7 @@ class Module extends baseModule
|
|||
*/
|
||||
public function addLoginView($path, $title)
|
||||
{
|
||||
$path = str_replace(app()->getRootPath(), '__WWWW__', $path);
|
||||
$path = str_replace(app()->getRootPath(), '__WWW__', $path);
|
||||
|
||||
$this->loginViews[$path] = $title;
|
||||
return $this;
|
||||
|
|
Loading…
Reference in New Issue