Hi,
I was noising thru the source, and noticed this variable:
$wgEnableScaryTranscluding = false;
Does this feature actually work properly? Obviously its silly name makes me think it hasn't been finished (and I couldn't see any docs on via google), but then one of the other functions was called getContentWithoutUsingSoManyDamnGlobals, and used everywhere...
The way I understand it it should allow for templates to be pulled in from other wikis, am I correct?
Kind regards,
Alex
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alex Powell wrote:
Hi,
I was noising thru the source, and noticed this variable:
$wgEnableScaryTranscluding = false;
Does this feature actually work properly? Obviously its silly name makes me think it hasn't been finished (and I couldn't see any docs on via google), but then one of the other functions was called getContentWithoutUsingSoManyDamnGlobals, and used everywhere...
The way I understand it it should allow for templates to be pulled in from other wikis, am I correct?
Kind regards,
Alex
You are right, and that's exactly the purpose of this feature. It seems to work, but is disabled by default, also in Wikimedia sites. There is a request ( http://bugzilla.wikimedia.org/show_bug.cgi?id=4547 ) to enable such transclution from Commons in Wikimedia sites.
- -- #define Name RotemLiss #define Mail mail-AT-rotemliss-DOT-com #define Site www.rotemliss.com
#define KeyFingerPrint 4AFD 8579 A449 4267 BED9 38E5 6EF8 5B1F EBDE 7AC0
It sounds no worse then the classic netcat comile switch "-DGAPING_SECURITY_HOLE".
xaosflux ----- Original Message ----- From: "Timwi" timwi@gmx.net To: wikitech-l@wikimedia.org Sent: Friday, August 18, 2006 9:25 PM Subject: Re: [Wikitech-l] $wgEnableScaryTranscluding
Alex Powell wrote:
$wgEnableScaryTranscluding = false;
Who comes up with such variable names, why isn't that person given a lesson on code maintainability?
Timwi
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 19/08/06, xaosflux xaosflux@gmail.com wrote:
It sounds no worse then the classic netcat comile switch "-DGAPING_SECURITY_HOLE".
Grep MediaWiki's source for $marching_ant_of_doom. An absolute classic, I feel...should be preserved forever in the hall of WTF. ;)
Rob Church
On Sat, Aug 19, 2006 at 02:25:48AM +0100, Timwi wrote:
Alex Powell wrote:
$wgEnableScaryTranscluding = false;
Who comes up with such variable names, why isn't that person given a lesson on code maintainability?
The person who came up with it, Timwi, very clearly never ever wanted to have to deal with a moron who turned it on, had problems, and claimed they weren't sufficiently warned.
It's a pretty common tactic.
Code maintainability is not the only thing for which large software systems must be optimized.
Cheers, -- jra
Jay R. Ashworth wrote:
On Sat, Aug 19, 2006 at 02:25:48AM +0100, Timwi wrote:
Alex Powell wrote:
$wgEnableScaryTranscluding = false;
Who comes up with such variable names, why isn't that person given a lesson on code maintainability?
The person who came up with it, Timwi, very clearly never ever wanted to have to deal with a moron who turned it on, had problems, and claimed they weren't sufficiently warned.
The person who came up with it doesn't know what comments are?
Code maintainability is not the only thing for which large software systems must be optimized.
I'm afraid you're not going to achieve performance or efficiency this way either. :-)
Timwi
I rather like it, actually - it says "beware", hence my post. It also says "I may not work properly" - which I also seem to be suffering from. I'd like to be able to transclude news headlines from wikinews, so I tried:
{{wikinews:{{CURRENTYEAR}}/{{CURRENTMONTHNAME}}/{{CURRENTDAY}}/Latest news}}
but it seems to just display it (with dates expanded)...
On 8/19/06, Timwi timwi@gmx.net wrote:
Jay R. Ashworth wrote:
On Sat, Aug 19, 2006 at 02:25:48AM +0100, Timwi wrote:
Alex Powell wrote:
$wgEnableScaryTranscluding = false;
Who comes up with such variable names, why isn't that person given a lesson on code maintainability?
The person who came up with it, Timwi, very clearly never ever wanted to have to deal with a moron who turned it on, had problems, and claimed they weren't sufficiently warned.
The person who came up with it doesn't know what comments are?
Code maintainability is not the only thing for which large software systems must be optimized.
I'm afraid you're not going to achieve performance or efficiency this way either. :-)
Timwi
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org