------------------------------------------------------------
revno: 1017
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Tue 2012-01-10 23:38:11 +0100
message:
bug 844689 corrected.Now aiki works on any port
modified:
bootstrap.php
--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk
Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'bootstrap.php'
--- bootstrap.php 2012-01-07 21:30:05 +0000
+++ bootstrap.php 2012-01-10 22:38:11 +0000
@@ -136,6 +136,11 @@
$config = $aiki->get_config($config);
+// if HTTP port is not 80, insert port in URL.
+if ( isset($config["url"]) && $_SERVER["SERVER_PORT"]!=80 ){
+ $config["url"] = preg_replace("#(http.?://[^/]*)(/)#",'$1:'. $_SERVER["SERVER_PORT"] . "/", $config["url"]);
+}
+
/*
* run time correction for site path
@@ -162,7 +167,6 @@
$aiki->load('url');
$aiki->load('site');
$aiki->load('config');
-
$aiki->load("languages");
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp