Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-08 15:05:41

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Path error running on windows

Hi all, I’m not sure about the correct place to post this report. If it’s wrong, please move it :)

While running textpattern on windows I had some problems with the images path, badly built into the administration panel (contents -> images). The problem is about the slash, in example C:\path\images/12.png instead of C:\path\images\12.png.
I fixed it changing line 22 (include/txp_image.php) from

define("IMPATH",$path_to_site.'/'.$img_dir.'/');

to

define("IMPATH",$path_to_site.DIRECTORY_SEPARATOR.$img_dir.'/');

However TextPattern is a really good CMS, good work!

PS: I apologise for my english


Gr3yFox

Offline

#2 2007-07-08 23:30:49

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

Re: Path error running on windows

Thanks. r2476.

Offline

#3 2007-07-09 12:28:10

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: Path error running on windows

That’s nothing. Thanks to you for the work! ;)


Gr3yFox

Offline

Board footer

Powered by FluxBB