Author: pmacadden
Date: 2010-02-15 19:51:06 +0100 (Mon, 15 Feb 2010)
New Revision: 28043

Modified:
   plugins/pmModuleEnablerPlugin/trunk/lib/model/pmConfiguration.php
Log:
bug fix

Modified: plugins/pmModuleEnablerPlugin/trunk/lib/model/pmConfiguration.php
===================================================================
--- plugins/pmModuleEnablerPlugin/trunk/lib/model/pmConfiguration.php   
2010-02-15 16:56:11 UTC (rev 28042)
+++ plugins/pmModuleEnablerPlugin/trunk/lib/model/pmConfiguration.php   
2010-02-15 18:51:06 UTC (rev 28043)
@@ -54,7 +54,7 @@
     }
     else
     {
-      if (!in_array($module_name, sfConfig::get('sf_enabled_modules')) || 
in_array($module_name, $always_enabled))
+      if (!in_array($module_name, sfConfig::get('sf_enabled_modules')) || 
in_array($module_name, $always_enabled) || $module_name == "default")
       {
         $ret = true;
       }
@@ -64,15 +64,6 @@
         $c->add(pmModulePeer::NAME, $module_name);
         $pm_module = pmModulePeer::doSelectOne($c);
         $ret = $pm_module?$pm_module->getIsEnabled():false;
-        /*
-        foreach ($this->getpmModules() as $pm_module)
-        {
-          if ($pm_module->getName() == $module_name && 
$pm_module->getIsEnabled())
-          {
-            $ret = true;
-          }
-        }
-        */
       }
     }
 

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to