[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] filemanager/inc class.bofilemanager.inc.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] filemanager/inc class.bofilemanager.inc.php |
Date: |
Wed, 30 Aug 2006 13:17:41 +0000 |
CVSROOT: /cvsroot/phpgroupware
Module name: filemanager
Changes by: Dave Hall <skwashd> 06/08/30 13:17:40
Modified files:
inc : class.bofilemanager.inc.php
Log message:
formatting to comply with coding guidelines, and some minor cleanups
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/filemanager/inc/class.bofilemanager.inc.php?cvsroot=phpgroupware&r1=1.29&r2=1.30
Patches:
Index: class.bofilemanager.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/filemanager/inc/class.bofilemanager.inc.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- class.bofilemanager.inc.php 17 Aug 2006 14:57:27 -0000 1.29
+++ class.bofilemanager.inc.php 30 Aug 2006 13:17:40 -0000 1.30
@@ -8,7 +8,7 @@
* @copyright Portions Copyright (C) 2000-2005 Free Software Foundation,
Inc http://www.fsf.org/
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @package filemanager
- * @version $Id: class.bofilemanager.inc.php,v 1.29 2006/08/17 14:57:27
skwashd Exp $
+ * @version $Id: class.bofilemanager.inc.php,v 1.30 2006/08/30 13:17:40
skwashd Exp $
* @internal Based on phpWebhosting
*/
@@ -68,18 +68,18 @@
function bofilemanager()
{
- if (@!is_object($GLOBALS['phpgw']->vfs))
+ if ( !isset($GLOBALS['phpgw']->vfs) ||
!is_object($GLOBALS['phpgw']->vfs) )
{
$GLOBALS['phpgw']->vfs = CreateObject
('phpgwapi.vfs');
}
- $to_decode = Array(
+ $to_decode = Array
+ (
/*
Decode
'var' when 'avar' == 'value'
or
'var' when 'var' is set
*/
-
'path',
'file',
'todir',
@@ -97,10 +97,9 @@
'command_line'
);
- $c_to_decode = count($to_decode);
- for($i=0;$i<$c_to_decode;$i++)
+ foreach ( $to_decode as $decode_me )
{
- $this->initialize_vars($to_decode[$i]);
+ $this->initialize_vars($decode_me);
}
if(count($this->fileman))