]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4491. Missed JS rewrite check view.
authorBrett Profitt <brett.profitt@gmail.com>
Sun, 16 Dec 2012 19:46:42 +0000 (14:46 -0500)
committerBrett Profitt <brett.profitt@gmail.com>
Sun, 16 Dec 2012 19:46:42 +0000 (14:46 -0500)
views/installation/install/js_rewrite_check.php [new file with mode: 0644]

diff --git a/views/installation/install/js_rewrite_check.php b/views/installation/install/js_rewrite_check.php
new file mode 100644 (file)
index 0000000..04d8117
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Some servers don't allow PHP to check the rewrite, so try via AJAX
+ */
+?>
+<script type="text/javascript">
+       elgg.installer.rewriteTest(
+               '<?php echo $vars['url'];?>',
+               '<?php echo elgg_echo('install:check:rewrite:success'); ?>',
+               '<?php echo $vars['config']->wwwroot; ?>install.php?step=database'
+       );
+</script>
\ No newline at end of file