[prev in list] [next in list] [prev in thread] [next in thread]
List: wikitech-l
Subject: Re: [Wikitech-l] Getting the value of a variable defined in LocalSettings.php
From: Vance - <vance0725 () gmail ! com>
Date: 2012-01-27 21:07:57
Message-ID: CAOwg8XZziBCfvmG_G+ytT9mjsqLs9wGtiy9kB+EWAYOchZD5zQ () mail ! gmail ! com
[Download RAW message or body]
Thanks, that worked!
On Fri, Jan 27, 2012 at 3:50 PM, Platonides <Platonides@gmail.com> wrote:
> On 27/01/12 21:22, Vance - wrote:
>
> > Is there a way to look up the value of a variable defined in the
> > 'LocalSettings.php' file ?
> >
>
> Inside an extension? Sure.
> global $wgDBpassword, $wgOut;
>
> $wgOut->addHTML("The database password is $wgDBpassword");
>
>
> If you mean from the wiki, no. You can't do
> {{#getMyVariable: $wgDBpassword}} and magically obtain the password.
>
> You _could_ create an extension which did that, but it wouldn't be a good
> idea... :)
>
>
> ______________________________**_________________
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/**mailman/listinfo/wikitech-l<https://lists.wikimedia.org/mailman/listinfo/wikitech-l>
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic