Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix: Moved definition of txpath to allow it to be defined in conf…

…ig file.

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@3285 2fea6a4d-a838-0410-917b-93a53c48e9d2
  • Loading branch information...
commit ce3baabb8c5d3525009335e1f0f6e5ab0a3f5fa2 1 parent 4e8fb6e
artagesw artagesw authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 sites/site1/public/index.php
10 sites/site1/public/index.php
View
@@ -13,11 +13,6 @@
unset($$name);
define("txpinterface", "public");
- if (!defined('txpath'))
- {
- define("txpath", realpath(dirname(__FILE__).'/../../../textpattern'));
- }
-
// save server path to site root
if (!isset($here))
{
@@ -33,6 +28,11 @@
ob_end_clean();
}
+ if (!defined('txpath'))
+ {
+ define("txpath", realpath(dirname(__FILE__).'/../../../textpattern'));
+ }
+
include txpath.'/lib/constants.php';
include txpath.'/lib/txplib_misc.php';
if (!isset($txpcfg['table_prefix']))
Please sign in to comment.
Something went wrong with that request. Please try again.