From ffd51c94d202eb271f35b2c4df24155f604c9db3 Mon Sep 17 00:00:00 2001 From: ChuJilu Date: Sat, 18 Oct 2014 09:37:01 +0800 Subject: [PATCH] * Change viewPrefix config. --- config/config.php | 2 +- framework/control.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.php b/config/config.php index 06b581c18b..b4dbdc2ae0 100644 --- a/config/config.php +++ b/config/config.php @@ -67,7 +67,7 @@ $config->file->dangers = 'php,php3,php4,phtml,php5,jsp,py,rb,asp,asa,cer,cdx,asp $config->file->maxSize = 1024 * 1024; // Max size. /* View type settings. */ -$config->viewPrefix['mhtml'] = 'm'; +$config->viewPrefix['mhtml'] = 'm.'; /* Master database settings. */ $config->db = new stdclass(); diff --git a/framework/control.class.php b/framework/control.class.php index 4d18d4c99c..e798b855c9 100755 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -269,7 +269,7 @@ class control public function setViewPrefix() { $this->viewPrefix = ''; - if(isset($this->config->viewPrefix[$this->viewType])) $this->viewPrefix = $this->config->viewPrefix[$this->viewType] . '.'; + if(isset($this->config->viewPrefix[$this->viewType])) $this->viewPrefix = $this->config->viewPrefix[$this->viewType]; } //-------------------- View related methods --------------------//