[textpattern] r3285 committed - Bug fix: Moved definition of txpath to allow it to be defined in confi...

0 views
Skip to first unread message

textp...@googlecode.com

unread,
Oct 30, 2009, 3:13:14 PM10/30/09
to txp...@googlegroups.com
Revision: 3285
Author: artagesw
Date: Fri Oct 30 12:12:05 2009
Log: Bug fix: Moved definition of txpath to allow it to be defined in
config file.

http://code.google.com/p/textpattern/source/detail?r=3285

Modified:
/development/4.x/sites/site1/public/index.php

=======================================
--- /development/4.x/sites/site1/public/index.php Mon Sep 14 22:15:25 2009
+++ /development/4.x/sites/site1/public/index.php Fri Oct 30 12:12:05 2009
@@ -12,11 +12,6 @@
foreach ( $_REQUEST as $name => $value )
unset($$name);
define("txpinterface", "public");
-
- if (!defined('txpath'))
- {
- define("txpath", realpath(dirname(__FILE__).'/../../../textpattern'));
- }

// save server path to site root
if (!isset($here))
@@ -32,6 +27,11 @@
include '../private/config.php';
ob_end_clean();
}
+
+ if (!defined('txpath'))
+ {
+ define("txpath", realpath(dirname(__FILE__).'/../../../textpattern'));
+ }

include txpath.'/lib/constants.php';
include txpath.'/lib/txplib_misc.php';

Reply all
Reply to author
Forward
0 new messages