Opened 17 years ago

Closed 13 years ago

#613 closed New Feature (worksforme)

Support for any directory

Reported by: robregonm@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF HasPatch Cc:

Description (last modified by Martin Kou)

I don't know if this is a improve or what, but it's very useful. My example is based on fckeditor.php

I suggest replace the line 38, by these lines:

$FCK_PATH =
str_replace("\\",'/',substr(dirname(__FILE__),strlen($_SERVER['DOCUMENT_ROOT'])));
if (!ereg('/$', $FCK_PATH)){
$FCK_PATH .= '/';
}
// directory where FCKeditor files are located
$this->BasePath = $FCK_PATH;

These lines load the base path automatically...


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1101990&group_id=75348&atid=543656

Change History (3)

comment:1 Changed 17 years ago by Martin Kou

Description: modified (diff)
Reporter: changed from Martin Kou to robregonm@…

comment:2 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:3 Changed 13 years ago by Wiktor Walc

Resolution: worksforme
Status: newclosed

If you think that there is still a bug in the CKEditor PHP integration files, please reopen this issue.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy