[Fusionforge-commits] r9557 - in trunk/gforge/www/docman: . admin

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Apr 21 15:58:40 CEST 2010


Author: lolando
Date: 2010-04-21 15:58:40 +0200 (Wed, 21 Apr 2010)
New Revision: 9557

Modified:
   trunk/gforge/www/docman/admin/index.php
   trunk/gforge/www/docman/new.php
Log:
Fixed bad replacements for use_ftpuploads

Modified: trunk/gforge/www/docman/admin/index.php
===================================================================
--- trunk/gforge/www/docman/admin/index.php	2010-04-20 22:56:56 UTC (rev 9556)
+++ trunk/gforge/www/docman/admin/index.php	2010-04-21 13:58:40 UTC (rev 9557)
@@ -103,7 +103,7 @@
 			$filename=$file_url;
 			$filetype='URL';
 		/*
-		} elseif (forge_get_config('use_ftp')uploads && $ftp_filename!=100) { //100==None
+		} elseif (forge_get_config('use_ftpuploads') && $ftp_filename!=100) { //100==None
 			$filename=$upload_dir.'/'.$ftp_filename;
 			$data = fread(fopen($filename, 'r'), filesize($filename));
 			$filetype=$uploaded_data_type;
@@ -326,7 +326,7 @@
 		<?php } else { ?>
 		<strong><?php echo _('OPTIONAL: Upload new file') ?></strong><br />
 		<input type="file" name="uploaded_data" size="30" /><br/><br />
-			<?php //if (forge_get_config('use_ftp')uploads) { ?>
+			<?php //if (forge_get_config('use_ftpuploads')) { ?>
 			<!--<strong><?php //printf(_('OR choose one form FTP %1$s'), $sys_ftp_upload_host) ?></strong>--><br />
 			<?php
 			//$ftp_files_arr=array_merge($arr,ls($upload_dir,true));

Modified: trunk/gforge/www/docman/new.php
===================================================================
--- trunk/gforge/www/docman/new.php	2010-04-20 22:56:56 UTC (rev 9556)
+++ trunk/gforge/www/docman/new.php	2010-04-21 13:58:40 UTC (rev 9557)
@@ -164,7 +164,7 @@
 				break;
 			}
 			case 'ftpupload' : {
-				if (forge_get_config('use_ftp')uploads) {
+				if (forge_get_config('use_ftpuploads')) {
 					echo '
 						<tr>
 							<td>




More information about the Fusionforge-commits mailing list