[Systems] wiki LocalSettings.php gremlins

Bernie Innocenti bernie at sugarlabs.org
Thu Apr 21 12:26:25 EDT 2011


On Thu, 2011-04-21 at 12:13 -0400, Frederick Grose wrote:
> On Thu, Apr 21, 2011 at 11:56 AM, Bernie Innocenti
> <bernie at codewiz.org> wrote:
>         
>         On Thu, 2011-04-21 at 11:51 -0400, Frederick Grose wrote:
>         > {...}
>         > -include_once('$IP/extensions/CheckUser/CheckUser.php');
>         > +# 21 April 2011 fgrose: updated to remove '$IP/' prefix
>         > +include_once('extensions/CheckUser/CheckUser.php');
>         >
>         >  # bernie: also help fight vandals
>         >  include_once('includes/DatabaseFunctions.php');
>         >
>          include_once("$IP/extensions/bad-behavior/bad-behavior-mediawiki.php");
>         
> 
> The single vs. double quoting suddenly prevented resolution of the $IP
> variable.

Ah yes, that's it! Like with Bash and Perl, string interpolation in PHP
is enabled only on double-quoted strings. 
-- 
Bernie Innocenti
Sugar Labs Infrastructure Team
http://wiki.sugarlabs.org/go/Infrastructure_Team




More information about the Systems mailing list