diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-12-15 12:58:55 -0500 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-12-15 12:58:55 -0500 |
commit | c62260d19232255ed91801bfd3e8887bfe7cfb91 (patch) | |
tree | af08fe1a3ca71b2cffbaad4afae442ac1831c731 /install/ElggRewriteTester.php | |
parent | ea2683430f081d8c4463268ca25993e4af4238bf (diff) | |
download | elgg-c62260d19232255ed91801bfd3e8887bfe7cfb91.tar.gz elgg-c62260d19232255ed91801bfd3e8887bfe7cfb91.tar.bz2 |
Fixes #4491. Automatic fallback to JS to test rewrite rules during installation.
Diffstat (limited to 'install/ElggRewriteTester.php')
-rw-r--r-- | install/ElggRewriteTester.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ElggRewriteTester.php b/install/ElggRewriteTester.php index c01510f60..ab68da2b7 100644 --- a/install/ElggRewriteTester.php +++ b/install/ElggRewriteTester.php @@ -154,6 +154,8 @@ class ElggRewriteTester { if ($this->serverSupportsRemoteRead == FALSE) { $msg = elgg_echo('install:warning:rewrite:unknown', array($url)); + $msg .= elgg_view('install/js_rewrite_check', array('url' => $url)); + return array( 'severity' => 'warning', 'message' => $msg, @@ -165,6 +167,8 @@ class ElggRewriteTester { $msg = "$serverString\n\n"; if (!isset($this->htaccessIssue)) { $msg .= elgg_echo('install:error:rewrite:allowoverride'); + $msg .= elgg_view('install/js_rewrite_check', array('url' => $url)); + return array( 'severity' => 'failure', 'message' => $msg, |