Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ExtendedFileManager/images.php
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ExtendedFileManager/images.php,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ExtendedFileManager/images.php 2 Feb 2007 21:04:51 -0000 1.1
+++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/ExtendedFileManager/images.php 14 Jun 2007 01:36:55 -0000 1.2
@@ -26,11 +26,9 @@
$renameStatus=$manager->processRenames();
//process paste
-if (isset($_GET['paste']))
- $pasteStatus = $manager->processPaste();
+$pasteStatus = (isset($_GET['paste'])) ? $manager->processPaste() : false;
-if ($manager->deleteFiles())
- $refreshFile = true;
+$refreshFile = ($manager->deleteFiles()) ? true : false;
$refreshDir = false;
//process any directory functions
@@ -50,16 +48,12 @@
$relative = $path;
}
+$afruViewType = (isset($_REQUEST['viewtype'])) ? $afruViewType=$_REQUEST['viewtype'] : '';
-$afruViewType="";
-if(isset($_REQUEST['viewtype']))
+if($afruViewType!="thumbview" && $afruViewType!="listview")
{
- $afruViewType=$_REQUEST['viewtype'];
+ $afruViewType=$IMConfig['view_type'];
}
-if($afruViewType!="thumbview" && $afruViewType!="listview")
-
-$afruViewType=$IMConfig['view_type'];
-
//get the list of files and directories
$list = $manager->getFiles($relative);
@@ -138,7 +132,7 @@
-
+