diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-15 19:38:49 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-15 19:38:49 +0000 |
commit | 77897d4efad074d9434a97a67052bc788c315dee (patch) | |
tree | 1bcce8494ca5840393ecf4c849e0efc34e575707 /install/ElggRewriteTester.php | |
parent | b7ea2e2e377568a3730ed46b8df1751cc747323f (diff) | |
download | elgg-77897d4efad074d9434a97a67052bc788c315dee.tar.gz elgg-77897d4efad074d9434a97a67052bc788c315dee.tar.bz2 |
Refs #3453 an implementation of creating the data directory. This capability is turned off due to security concerns.
git-svn-id: http://code.elgg.org/elgg/trunk@9088 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install/ElggRewriteTester.php')
-rw-r--r-- | install/ElggRewriteTester.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ElggRewriteTester.php b/install/ElggRewriteTester.php index c8a503cb8..c01510f60 100644 --- a/install/ElggRewriteTester.php +++ b/install/ElggRewriteTester.php @@ -30,7 +30,7 @@ class ElggRewriteTester { */ public function run($url, $path) { - $this->guessWebServer(); + $this->webserver = ElggRewriteTester::guessWebServer(); $this->rewriteTestPassed = $this->runRewriteTest($url); @@ -48,17 +48,17 @@ class ElggRewriteTester { /** * Guess the web server from $_SERVER['SERVER_SOFTWARE'] * - * @return void + * @return string */ - protected function guessWebServer() { + public static function guessWebServer() { $serverString = strtolower($_SERVER['SERVER_SOFTWARE']); $possibleServers = array('apache', 'nginx', 'lighttpd', 'iis'); foreach ($possibleServers as $server) { if (strpos($serverString, $server) !== FALSE) { - $this->webserver = $server; - return; + return $server; } } + return 'unknown'; } /** |