diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 671bd69a0e4..b1f395d52b7 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -4,6 +4,7 @@ * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2011 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +23,7 @@ /** * \file htdocs/admin/modules.php * \brief Page to activate/disable all modules - * \version $Id: modules.php,v 1.157 2011/08/01 12:25:15 hregis Exp $ + * \version $Id: modules.php,v 1.159 2011/08/04 21:07:33 simnandez Exp $ */ require("../main.inc.php"); @@ -89,10 +90,10 @@ foreach ($conf->file->dol_document_root as $type => $dirroot) if ($type == 'alt') { - $althandle=@opendir($dirroot); - if (is_resource($althandle)) + $handle=@opendir($dirroot); + if (is_resource($handle)) { - while (($file = readdir($althandle))!==false) + while (($file = readdir($handle))!==false) { if (is_dir($dirroot.'/'.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' && $file != 'includes') { @@ -102,6 +103,7 @@ foreach ($conf->file->dol_document_root as $type => $dirroot) } } } + closedir($handle); } } } @@ -373,7 +375,7 @@ if ($mode != 4) else { print ''; - print img_picto($langs->trans("Activated"),'on'); + print img_picto($langs->trans("Activated"),'switch_on'); print ''."\n"; } @@ -431,7 +433,7 @@ if ($mode != 4) // Module non actif print ''; - print img_picto($langs->trans("Disabled"),'off'); + print img_picto($langs->trans("Disabled"),'switch_off'); print "\n  \n"; } @@ -472,5 +474,5 @@ print ''; $db->close(); -llxFooter('$Date: 2011/08/01 12:25:15 $ - $Revision: 1.157 $'); +llxFooter('$Date: 2011/08/04 21:07:33 $ - $Revision: 1.159 $'); ?>