------------------------------------------------------------
revno: 989
committer: Bassel Safadi <[email protected]>
branch nick: aikiframework
timestamp: Sun 2012-01-01 22:42:10 +0200
message:
  added basic run time correction for path when changing root directory
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	2011-12-26 16:44:59 +0000
+++ bootstrap.php	2012-01-01 20:42:10 +0000
@@ -112,6 +112,7 @@
  */
 require_once("$AIKI_ROOT_DIR/libs/aiki.php");
 
+
 /**
  * Global creation of the aiki instance.
  * @global aiki $aiki
@@ -127,6 +128,14 @@
 
 $config = $aiki->get_config($config);
 
+
+/*
+ * run time correction for site path
+*/
+if ($config['top_folder'] and $config['top_folder'] != $AIKI_ROOT_DIR){
+	$config['top_folder'] = $AIKI_ROOT_DIR;
+}
+
 /*
  * Load some auxiliary classes
 */

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to