Home  >  Article  >  CMS Tutorial  >  What to do if DreamWeaver CMS module management is blank

What to do if DreamWeaver CMS module management is blank

藏色散人
藏色散人Original
2019-12-03 09:03:341971browse

What to do if DreamWeaver CMS module management is blank

Sometimes the module management is blank. The reason is the failure to obtain the module of DreamWeaver Remote.

What to do if DreamWeaver CMS module management is blank

Solution:

Modify \dede\module_main.php and comment out lines 91 and 95:

if($action=='')
{
    $types = array('soft'=>'模块','templets'=>'模板','plus'=>'小插件','patch'=>'补丁');
    $dm = new DedeModule($mdir);
    if(empty($moduletype)) $moduletype = '';
//$modules_remote = $dm->GetModuleUrlList($moduletype,$mdurl);
$modules = array();
$modules = $dm->GetModuleList($moduletype);
is_array($modules) || $modules = array();
//$modules = array_merge($modules,$modules_remote);
    require_once(dirname(__FILE__)."/templets/module_main.htm");
    $dm->Clear();
    exit();
}

This way, if When the remote Dreamweaver module information fails to be obtained, only the local module list will be displayed so that it will not be blank.

Recommended study: 梦Weavercms

The above is the detailed content of What to do if DreamWeaver CMS module management is blank. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn