Re: [Mediawiki-l] Include LocalSettings.php from external PHP script?

2010-06-29 Thread Tim Starling
On 30/06/10 05:48, Samuel Lampa wrote: > Yes, tried this without success ... though there might be some > workaround to the "sapi != cli" similar to the suggested solution for > using LocalSettings.php above in the thread? Yes, use WebStart.php instead. WebStart.php does the same thing as comman

Re: [Mediawiki-l] Include LocalSettings.php from external PHP script?

2010-06-29 Thread Samuel Lampa
Yes, tried this without success ... though there might be some workaround to the "sapi != cli" similar to the suggested solution for using LocalSettings.php above in the thread? ... anyway, it seems I can now use a SpecialPage instead, to implement the functionality. But many thanks for your re

Re: [Mediawiki-l] Include LocalSettings.php from external PHP script?

2010-06-29 Thread Samuel Lampa
Many thanks for the hints. It seems (after mailing on wikitech-l) that I can accomplish what I want in a SpecialPage instead (using $wgOut->disable() and taking control of output) and will not need an external script, but saving the hints for future reference. Samuel On 06/29/2010 05:35 AM, T

Re: [Mediawiki-l] Include LocalSettings.php from external PHP script?

2010-06-29 Thread Chad
That only works if you're writing a maintenance script of course. commandLine.inc (and its parent) bail out if the sapi != cli. -Chad On Jun 29, 2010 10:21 AM, "Daniel Barrett" wrote: What about including "maintenance/commandLine.inc"? That gives scripts access to lots of MediaWiki functionali

Re: [Mediawiki-l] linking local content

2010-06-29 Thread Anne Wilson
On Tuesday 29 June 2010 13:48:31 Michael Lindner - dii wrote: > Problem: all the links to be made will contain "space" characters, so a > path will look like this: file:\\srv1\Resources & Databases\WIKI > development\used\*.odt. There is no way to replace the backspace > characters on the server it

Re: [Mediawiki-l] Annoying File Upload Change in 1.16b3

2010-06-29 Thread Benjamin Lees
On Tue, Jun 29, 2010 at 9:34 AM, Douglas Mason wrote: > Anyone else observed this? Any solutions? How did a broken system just > get... brokener? I believe this was a regression in the security fix for 1.16b3. It was fixed in trunk in r68236, but it hasn't been backported (yet). It's a one-lin

Re: [Mediawiki-l] Include LocalSettings.php from external PHP script?

2010-06-29 Thread Daniel Barrett
What about including "maintenance/commandLine.inc"? That gives scripts access to lots of MediaWiki functionality. DanB ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

[Mediawiki-l] Annoying File Upload Change in 1.16b3

2010-06-29 Thread Douglas Mason
Dear All, There is a common workflow to file uploads: type in the name of the file [[File:Filename.ext]] in the wikipage, save it, click on the link, select the file for upload and hit upload, then go back to the original page. With 1.16b3, for some reason, when you select the file, it renames th

Re: [Mediawiki-l] linking local content

2010-06-29 Thread Steve VanSlyck
Backspace characters? - Original Message - > Problem: all the links to be made will contain "space" characters, so a path will look like this: file:\\srv1\Resources & Databases\WIKI development\used\*.odt. There is no way to replace the backspace characters on the server itself... ___

[Mediawiki-l] linking local content

2010-06-29 Thread Michael Lindner - dii
Hi List, this is my first posting into this mailinglist, so please excuse me if I am doing sth wrong. I am maintaining an company-wide, internaly used mediawiki installation (Version 1.12). Now, the users of this list have asked me how to link into localy saved documents, stored on a server-sys