* Change viewPrefix config.

This commit is contained in:
ChuJilu
2014-10-18 09:37:01 +08:00
parent 4fedcd4234
commit ffd51c94d2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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 --------------------//