[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.common.inc.php
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.common.inc.php |
Date: |
Sun, 10 Sep 2006 16:56:47 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Caeies <Caeies> 06/09/10 16:56:47
Modified files:
inc : class.common.inc.php
Log message:
closedir only if opened, and E_ALL fix
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.common.inc.php?cvsroot=phpgwapi&r1=1.242&r2=1.243
Patches:
Index: class.common.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.242
retrieving revision 1.243
diff -u -b -r1.242 -r1.243
--- class.common.inc.php 9 Sep 2006 11:43:15 -0000 1.242
+++ class.common.inc.php 10 Sep 2006 16:56:47 -0000 1.243
@@ -8,7 +8,7 @@
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage utilities
- * @version $Id: class.common.inc.php,v 1.242 2006/09/09 11:43:15
skwashd Exp $
+ * @version $Id: class.common.inc.php,v 1.243 2006/09/10 16:56:47 Caeies
Exp $
*/
/**
@@ -673,7 +673,7 @@
function list_themes()
{
$tpl_dir = $this->get_tpl_dir('phpgwapi');
-
+ $list = array();
if ($dh = @opendir($tpl_dir . SEP . 'css'))
{
while ($file = readdir($dh))
@@ -683,8 +683,8 @@
$list[] =
substr($file,0,strpos($file,'.'));
}
}
- }
closedir($dh);
+ }
reset ($list);
return $list;
}
- [Phpgroupware-cvs] phpgwapi/inc class.common.inc.php,
Caeies <=