[omd-commits] OMD Git: omd: added definition to preload.php if not run in webenv

git version control git at mathias-kettner.de
Tue Nov 13 08:04:34 CET 2012


Module:   omd
Branch:   master
Commit:   35f89ce07951322b5a808f315e2786c6099cff6c
URL:      http://omdistro.org/projects/omd/repository/revisions/35f89ce07951322b5a808f315e2786c6099cff6c

Author:   Stefan Hoesl <little at halelrtau.net>
Date:     Tue Nov 13 08:04:31 2012 +0100
Commiter: Stefan Hoesl <little at halelrtau.net>
Date:     Tue Nov 13 08:04:31 2012 +0100

added definition to preload.php if not run in webenv

---

 packages/dokuwiki/preload.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/packages/dokuwiki/preload.php b/packages/dokuwiki/preload.php
index 3a019d2..1320b0c 100644
--- a/packages/dokuwiki/preload.php
+++ b/packages/dokuwiki/preload.php
@@ -6,6 +6,11 @@ if(substr($_SERVER["SCRIPT_FILENAME"], 0, 4) == '/omd') {
     define('DOKU_CONF', '/omd/sites/'.$site.'/etc/dokuwiki/');
     unset($site_parts);
     unset($site);
+} else {
+    $site=getenv('OMD_SITE');
+    define('DOKU_CONF', '/omd/sites/'.$site.'/etc/dokuwiki/');
+    define('DOKU_INC', '/omd/sites/'.$site.'/var/dokuwiki/data/');
+    unset($site);
 }
 
 $config_cascade = array(



More information about the omd-commits mailing list