In the sourcecode of phpCMS (in
class.parser_filephpcms.php) there is some code to
detect $HOME in the <PHPCMS_INCLUDE> command
and to replace it with $DEFAULTS->PROJECT_HOME.
This doesn't work, you always get the message, that
$HOME is not set.
The reason is:
$DEFAULTS->PROJECT_HOME gets set when
phpCMS parses the Project-File and finds
the "HOME := ..." statement. But the
<PHPCMS_INCLUDE> command in the content-file is
executed when phpCMS reads the content-file in, and
that's before the Project-File ist parsed so $DEFAULTS-
>PROJECT_HOME isn't set until then.
Solution:
Easiest: Remove the parts for the detection of $home for
the <PHPCMS_INCLUDE> command from the
sourcecode and add some informations to the
documentation, that $home doesn't work together with
<PHPCMS_INCLUDE> (I recommend this solution for
phpCMS 1.1.10)
For Version 1.2.0 we should see anyway, that we make
the whole handling of $HOME much more easier so it
don't has to be considered in douzens of different
locations in the sourcecode.
Logged In: YES
user_id=504414
The handling of <PHPCMS_INCLUDE> and $home has to be
optimized in one of the further versions of phpCMS anyway,
so I'm setting the priority of this bug down to "1",
rescheduling it for a future version of phpCMS
ciao.. Iggi