Home > CMS Tutorial > DEDECMS > body text

What to do if DreamWeaver CMS module management is blank

藏色散人
Release: 2019-12-03 09:03:34
Original
1961 people have browsed it

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();
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!