Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-11 09:45:00

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

why "define("txpath", dirname(__FILE__)"

in textpattern “index.php” line 20 the code says:
define(“txpath”, dirname(FILE));

why isn’t it:
define(“txpath”, $txpcfg[‘txpath’]);

this way it would be easier to run multiple sites using on central textpattern installation (see this thread http://forum.textpattern.com/viewtopic.php?id=15096)

Offline

#2 2007-01-16 10:39:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: why "define("txpath", dirname(__FILE__)"

That’s a bloody good question actually.


Alex

Offline

#3 2007-01-19 10:40:58

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: why "define("txpath", dirname(__FILE__)"

r39:

…trying out a different method for establishing exactly where txp is installed, with a view toward getting away from relying on txpath in config, and seeing if tilde paths can be made to work

Offline

Board footer

Powered by FluxBB