-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 25/09/10 01:40, David Raison wrote: >> I'd recommend naming the file using a hash of the properties used to >> generate the image, instead of naming it for the using page. This will make >> your code a bit more independent of where it gets called from, and will let >> you both put multiple code images on one page and let common images be >> shared among multiple pages. > > Will do that too then.
Hmm... this is interesting though... If you check out the source, you'll see that I have replaced every call to the global $wgTitle by the object returned by $parser->getTitle() And though I don't set a var (but only read them), when you first refresh a page with a QrCode on it, it replaces the page's title with the qrcode's >>> 6. Looking at the database, the mixup hypothesis is confirmed: >> It's possible that the internal uploading process interferes with global >> parsing state when it generates and saves the description page for the wiki; Maybe it is after all this problem. Coming to think of it! When you upload an image using the Special:Upload page, the resulting page's title exhibits exactly the behaviour mentioned above, it turns into File:<name of uploaded file> for example: File:QR-ee09b666b60225368736dfaef75c62ea.png >> if so, fixing that may require jumping through some interesting hoops. :) Can I just another method then, like for example publish() in combination with some other methods that enter the upload into the database? David - -- The Hackerspace in Luxembourg! syn2cat a.s.b.l. - Promoting social and technical innovations 11, rue du cimetière | Pavillon "Am Hueflach" L-8018 Strassen | Luxembourg http://www.hackerspace.lu - ---- mailto:[email protected] xmpp:[email protected] mobile: +43 650 73 63 834 | +352 691 44 23 24 ++++++++++++++++++++++++++++++++++++++++++++ Wear your geek: http://syn2cat.spreadshirt.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkydUTsACgkQYTtdUdP5zDfbTQCePNatYZoaUu5kj5jJ04icvCFT z1wAoMDx+2/8ZHOyC+T9DoPPFDxhWkK3 =5O6+ -----END PGP SIGNATURE----- _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
