Opened 17 years ago

Last modified 13 years ago

#613 closed New Feature

Support for any directory — at Version 1

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 (1)

comment:1 Changed 17 years ago by Martin Kou

Description: modified (diff)
Reporter: changed from Martin Kou to robregonm@…
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