Menu

#95 $home does not work with <PHPCMS_INCLUDE>

phpCMS_1.2.0_beta2
open
Parser (93)
1
2003-08-13
2003-04-04
No

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.

Discussion

  • Thilo Wagner

    Thilo Wagner - 2003-04-15
    • labels: --> Parser
    • assigned_to: nobody --> ignatius0815
    • priority: 8 --> 5
    • milestone: --> 276081
     
  • hpoe

    hpoe - 2003-05-04
    • summary: $home does not work with <PHPCMS_INCLUDE> --> $home does not work with &lt;PHPCMS_INCLUDE&gt;
    • milestone: 276081 --> 299721
     
  • hpoe

    hpoe - 2003-06-17
    • milestone: 299721 --> phpCMS_1.2.0_beta2
    • summary: $home does not work with &lt;PHPCMS_INCLUDE&gt; --> $home does not work with &amp;lt;PHPCMS_INCLUDE&amp;gt;
     
  • Thilo Wagner

    Thilo Wagner - 2003-08-01

    Logged In: YES
    user_id=504414

    The handling of &lt;PHPCMS_INCLUDE&gt; 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 &quot;1&quot;,
    rescheduling it for a future version of phpCMS

    ciao.. Iggi

     
  • Thilo Wagner

    Thilo Wagner - 2003-08-01
    • priority: 5 --> 1
     
  • Beate Paland

    Beate Paland - 2003-08-13
    • summary: $home does not work with &amp;lt;PHPCMS_INCLUDE&amp;gt; --> $home does not work with <PHPCMS_INCLUDE>
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.