[Fusionforge-commits] r11853 - in trunk/src/common/docman: . actions

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Dec 20 16:08:53 CET 2010


Author: nerville
Date: 2010-12-20 16:08:53 +0100 (Mon, 20 Dec 2010)
New Revision: 11853

Modified:
   trunk/src/common/docman/DocumentGroup.class.php
   trunk/src/common/docman/actions/injectzip.php
Log:
rename to prepare other archive support

Modified: trunk/src/common/docman/DocumentGroup.class.php
===================================================================
--- trunk/src/common/docman/DocumentGroup.class.php	2010-12-20 14:44:29 UTC (rev 11852)
+++ trunk/src/common/docman/DocumentGroup.class.php	2010-12-20 15:08:53 UTC (rev 11853)
@@ -192,14 +192,14 @@
 	}
 
 	/**
-	 * injectZip - unzip the attachment and create the directory tree if needed
+	 * injectArchive - extract the attachment and create the directory tree if needed
 	 *
 	 * @param	int	doc_group id
 	 * @param	array	uploaded data
 	 * @return	boolean	success or not
 	 * @access	public
 	 */
-	function injectZip($doc_group, $uploaded_data) {
+	function injectArchive($doc_group, $uploaded_data) {
 		if (!is_uploaded_file($uploaded_data['tmp_name'])) {
 			$this->setError(_('Invalid file name.'));
 			return false;

Modified: trunk/src/common/docman/actions/injectzip.php
===================================================================
--- trunk/src/common/docman/actions/injectzip.php	2010-12-20 14:44:29 UTC (rev 11852)
+++ trunk/src/common/docman/actions/injectzip.php	2010-12-20 15:08:53 UTC (rev 11853)
@@ -45,11 +45,11 @@
 	if ($dg->isError())
 		session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
 
-	if (!$dg->injectZip($doc_group, $uploaded_zip)) {
+	if (!$dg->injectArchive($doc_group, $uploaded_zip)) {
 		$return_msg = $dg->getErrorMessage();
 		$return_url = '/docman/?group_id='.$group_id.'&error_msg='.urlencode($return_msg);
 	} else {
-		$return_msg = _('Zip injected successfully.');
+		$return_msg = _('Archive injected successfully.');
 		$return_url = '/docman/?group_id='.$group_id.'&feedback='.urlencode($return_msg);
 	}
 




More information about the Fusionforge-commits mailing list