From: <min...@us...> - 2006-08-08 16:51:40
|
Revision: 14219 Author: mindless Date: 2006-08-08 09:51:36 -0700 (Tue, 08 Aug 2006) ViewCVS: http://svn.sourceforge.net/gallery/?rev=14219&view=rev Log Message: ----------- remove unused var, whitespace cleanup Modified Paths: -------------- trunk/gallery2/install/index.php Modified: trunk/gallery2/install/index.php =================================================================== --- trunk/gallery2/install/index.php 2006-08-08 16:39:59 UTC (rev 14218) +++ trunk/gallery2/install/index.php 2006-08-08 16:51:36 UTC (rev 14219) @@ -296,11 +296,11 @@ return false; } } - - return secureStorageFolder($dataBase); + + return secureStorageFolder($dataBase); } -/** +/** * Secure the storage folder from attempts to access it directly via the web by adding a * .htaccess with a "Deny from all" directive. This won't have any effect on webservers other * than Apache 1.2+ though. @@ -316,11 +316,11 @@ $htaccessContents = "<IfModule mod_access.c>\n" . "Order allow,deny\n" . "Deny from all\n" . - "</IfModule>\n"; + "</IfModule>\n"; fwrite($fh, $htaccessContents); fclose($fh); } - + return file_exists($htaccessPath); } @@ -340,9 +340,9 @@ $galleryDir = dirname(dirname(__FILE__)); require_once($galleryDir . '/modules/core/classes/GalleryUrlGenerator.class'); $urlPath = preg_replace('|^(.*/)install/index.php(?:\?.*)?$|s', '$1', - GalleryUrlGenerator::getCurrentRequestUri()); - - return $baseUri = getBaseUrl() . $urlPath; + GalleryUrlGenerator::getCurrentRequestUri()); + + return getBaseUrl() . $urlPath; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |