* adjust for doc and testtask view for xuanxuan.

This commit is contained in:
wangyidong
2018-12-17 15:39:49 +08:00
parent 14bb43df14
commit 201e157ffd
6 changed files with 128 additions and 273 deletions
+3 -6
View File
@@ -41,13 +41,10 @@ class control extends baseControl
$mainViewFile = $modulePath . 'view' . DS . $this->devicePrefix . $methodName . '.' . $viewType . '.php';
/* If the main view file doesn't exist, set the device prefix to empty and reset the main view file. */
if($this->viewType == 'mhtml' or $this->viewType == 'xhtml')
if(!file_exists($mainViewFile))
{
if(!file_exists($mainViewFile))
{
$this->devicePrefix = '';
$mainViewFile = $modulePath . 'view' . DS . $this->devicePrefix . $methodName . '.' . $viewType . '.php';
}
$this->devicePrefix = '';
$mainViewFile = $modulePath . 'view' . DS . $this->devicePrefix . $methodName . '.' . $viewType . '.php';
}
$viewFile = $mainViewFile;