[drupal-devel] Drupal executes stuff in .inc files
Jose A. Reyero
jareyero at wanadoo.es
Wed Mar 9 09:58:33 UTC 2005
Gerhard Killesreiter wrote:
>Hi there!
>
>One of the problems that our Debian packager has had is that for example
>the update script includes bootstrap.inc and common.inc. These in turn
>include severayl other .inc files. In three of these files (bootstrap,
>common, and session) there is php code that does not only define new
>functions, but also executes them. This is pretty annoying, as it for
>example starts a session which you might not want and initializes
>several parts of Drupal you might prefer to not execute for some
>reason. You'd however still like all the common.inc functions to be
>available.
>
>
>
Very good -your patch-, not only for the reasons you point out, but also
for cleanness and readability of the code.
More information about the drupal-devel
mailing list