aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/output.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r--engine/lib/output.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php
index 6f4ef7b96..2c3324b49 100644
--- a/engine/lib/output.php
+++ b/engine/lib/output.php
@@ -160,6 +160,11 @@ function elgg_normalize_url($url) {
return $url;
}
+ // 'install.php', 'install.php?step=step'
+ elseif (preg_match("#^[^/]*\.php(\?.*)?$#i", $url)) {
+ return elgg_get_site_url().$url;
+ }
+
// 'example.com', 'example.com/subpage'
elseif (preg_match("#^[^/]*\.#i", $url)) {
return "http://$url";