public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Fixed plugin listings properly


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@2391 
3d254a34-79dc-0310-9e5f-be208747d8a0
calguy1000 (author)
Thu Dec 22 08:22:32 -0800 2005
commit  b8775f2cf1ddb954ad53b82bef1876536e558fc9
tree    a4164c50c8ce557ad7cd97d432d949c72365538b
parent  3889d749df8fb46fc17455c46af324a398bef45e
...
19
20
21
 
22
23
24
...
36
37
38
39
40
41
42
...
19
20
21
22
23
24
25
...
37
38
39
 
40
41
42
0
@@ -19,6 +19,7 @@
0
 #$Id$
0
 
0
 $CMS_ADMIN_PAGE=1;
0
+$CMS_LOAD_ALL_PLUGINS=1;
0
 
0
 require_once("../include.php");
0
 
0
@@ -36,7 +37,6 @@ $access = check_permission($userid, "Modify Modules");
0
 #$smarty = new Smarty_CMS($gCms->config);
0
 
0
 include_once("header.php");
0
-
0
 if ($action == "showpluginhelp")
0
 {
0
   if (function_exists('smarty_cms_help_function_'.$plugin))
...
967
968
969
 
 
970
971
972
...
985
986
987
988
 
 
989
990
991
...
967
968
969
970
971
972
973
974
...
987
988
989
 
990
991
992
993
994
0
@@ -967,6 +967,8 @@ function load_plugins(&$smarty)
0
 
0
 function search_plugins(&$smarty, &$plugins, $dir, $caching)
0
 {
0
+ global $CMS_LOAD_ALL_PLUGINS;
0
+
0
   $ls = dir($dir);
0
   while (($file = $ls->read()) != "")
0
   {
0
@@ -985,7 +987,8 @@ function search_plugins(&$smarty, &$plugins, $dir, $caching)
0
         $file = $filearray[1];
0
         if (!isset($plugins[$file]))
0
         {
0
- if (strpos($filename, 'function') !== false && filesize($filename) > 50)
0
+ if ((strpos($filename, 'function') !== false) && (filesize($filename) > 50)
0
+ && isset($CMS_LOAD_ALL_PLUGINS))
0
           {
0
             require_once $filename;
0
             if (function_exists("smarty_cms_function_" . $file))

Comments

    No one has commented yet.