lhc/web/wiklou.git
15 years agoAdd a script to filecache content pages on the wiki
Aaron Schulz [Thu, 11 Dec 2008 14:35:33 +0000 (14:35 +0000)]
Add a script to filecache content pages on the wiki

15 years agoPull up and tweak filecache check to make it much faster and able to for request...
Aaron Schulz [Thu, 11 Dec 2008 14:29:16 +0000 (14:29 +0000)]
Pull up and tweak filecache check to make it much faster and able to for request to avoid a db hit if counters are off and job rate = 0

15 years agodocument SetupAfterCache hook ;)
Alexandre Emsenhuber [Thu, 11 Dec 2008 11:50:45 +0000 (11:50 +0000)]
document SetupAfterCache hook ;)

15 years agoReduce queries for pagesize thingy
Aaron Schulz [Thu, 11 Dec 2008 01:33:27 +0000 (01:33 +0000)]
Reduce queries for pagesize thingy

15 years agoMay as well set article ID in title
Aaron Schulz [Thu, 11 Dec 2008 01:28:37 +0000 (01:28 +0000)]
May as well set article ID in title

15 years agoFix this broken crap some more
Aaron Schulz [Thu, 11 Dec 2008 01:17:17 +0000 (01:17 +0000)]
Fix this broken crap some more

15 years agoRevert r44381 "Remove noisy profiling"
Brion Vibber [Thu, 11 Dec 2008 00:54:21 +0000 (00:54 +0000)]
Revert r44381 "Remove noisy profiling"
We... like profiling? :D

15 years agoRevert r44365 "Cleanup Title::getTouched()"
Brion Vibber [Thu, 11 Dec 2008 00:42:50 +0000 (00:42 +0000)]
Revert r44365 "Cleanup Title::getTouched()"
Rather than a cleanup, this rev seems to be adding a per-Title-object cache of page_touched. I'm a little leery of adding extra caches like this, particularly since it's not clear that it'll get consistently updated.

15 years agoRevert r44335 "Tweak profile calls"
Brion Vibber [Thu, 11 Dec 2008 00:29:37 +0000 (00:29 +0000)]
Revert r44335 "Tweak profile calls"
Let the doUpdates() func get counted even when it has nothing to do; otherwise stats will be skewed to only times when there are multiple updates. Or.... hmmm. bleah.

15 years agoRevert part of r44296 "*Skip autoloading of skin, always does inefficient strtolower...
Brion Vibber [Wed, 10 Dec 2008 23:39:02 +0000 (23:39 +0000)]
Revert part of r44296 "*Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway" and r44302 "Tweak r44296: use autoloader if it is set there".
Unless there's some really huge overriding reason to do this, there's no point poking around in the autoloader's guts to try to outsmart it. Just let it take a few nanoseconds to check its array and don't add yourself a dependency on its implementation details.
If there *is* some really huge overriding reason to complicate the code, please provide some data supporting it.

15 years agoRevert r44292 "Assign by ref to make sure cache fields carry over"
Brion Vibber [Wed, 10 Dec 2008 23:29:43 +0000 (23:29 +0000)]
Revert r44292 "Assign by ref to make sure cache fields carry over"
This isn't PHP 4; the object's fields are changed on the object itself just fine. Unless people are changing the global variable $wgTitle to something different this should be fine. If there is a problem that this fixes, that's probably a problem itself and should be fixed in a cleaner way :D

15 years ago(bug 16589) CoreParserFunctions error causes 500
Aaron Schulz [Wed, 10 Dec 2008 23:27:25 +0000 (23:27 +0000)]
(bug 16589) CoreParserFunctions error causes 500

15 years agoRevert r44271 "(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot...
Brion Vibber [Wed, 10 Dec 2008 23:21:28 +0000 (23:21 +0000)]
Revert r44271 "(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')"
Behavior seems a bit hard to predict, as far as what's going to go in the header and what in the browser window etc. Pulling it back for further testing and discussion.

15 years agoConfigure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAf...
Andrew Garrett [Wed, 10 Dec 2008 23:15:50 +0000 (23:15 +0000)]
Configure extension: With DB handler, defer wfConfigureSetup() to a new hook, SetupAfterCache, which, as the name implies, is executed in Setup.php, after caches are initialised.
This avoids some weird issues with Configure and maintenance scripts.

15 years agoRevert r44257 "Use boolean searching with '?' char"
Brion Vibber [Wed, 10 Dec 2008 23:06:44 +0000 (23:06 +0000)]
Revert r44257 "Use boolean searching with '?' char"
Let's avoid making up our own syntax that nobody will know or think to try...
Lucene, Google, Yahoo!, and Windows Live search all understand "red OR lion" but see nothing special in "?red ?lion". If we're going to add it, let's make the OR thing work. :)

15 years agoRevert r44254 "Cleanup to wfGetNull(): * Add override in case /dev/null isn't accessi...
Brion Vibber [Wed, 10 Dec 2008 22:58:24 +0000 (22:58 +0000)]
Revert r44254 "Cleanup to wfGetNull(): * Add override in case /dev/null isn't accessible (bug 11009)"
Doesn't seem like a proper fix here... At best, this'll be dumping random crap to some random file unless the user has a local copy of the /dev/null device file, which seems.... wrong. :)
For anything generating command lines, it probably won't make any difference (assuming exec() is enabled at all!) since open_basedir won't be searching through the command line (I think).
Assuming the core use case actually happens (open_basedir is set, but proc_open() is available to run tidy), a more correct fix is probably to go ahead and read in stderr and toss the results, or maybe better pass it through to PHP's stderr FD instead of opening /dev/null ourselves. Tidy has a -q option which should suppress random "hi i'm tidy version XYZ" if it's currently present.

15 years agoAttempting to import a title that came out as an interwiki would sort of half-work...
Brion Vibber [Wed, 10 Dec 2008 22:41:13 +0000 (22:41 +0000)]
Attempting to import a title that came out as an interwiki would sort of half-work somewhere then explode when trying to save the null revision with the import info:
Fatal error:  Call to a member function insertOn() on a non-object in /Library/WebServer/Documents/trunk/includes/specials/SpecialImport.php on line 305

Now such titles are skipped. You can probably force import of the page by forcing the target namespace...

Better long-term solution might include title renormalization, adapation of remote namespace names (eg Wikipedia -> Project), etc.

15 years ago* API: (bug 16613) action=protect doesn't say when &cascade is set but cascading...
Roan Kattouw [Wed, 10 Dec 2008 22:39:41 +0000 (22:39 +0000)]
* API: (bug 16613) action=protect doesn't say when &cascade is set but cascading protection wasn't allowed
* Changed Article::updateRestrictions()'s $cascade parameter to a reference which is set to false if cascading protection isn't allowed
* Used this in ApiProtect
* Expand help message for &cascade a bit

15 years agoFollow-up to r44245, r44250 (comment field on Special:Import)
Brion Vibber [Wed, 10 Dec 2008 22:31:32 +0000 (22:31 +0000)]
Follow-up to r44245, r44250 (comment field on Special:Import)
Label now clickable for comment field on the transwiki form as well as the upload form; gave them both distinctive IDs.

15 years agoFollow-up to r44216/r44217 "Followup to r44204. Hardcoding image because it should...
Brion Vibber [Wed, 10 Dec 2008 22:07:04 +0000 (22:07 +0000)]
Follow-up to r44216/r44217 "Followup to r44204. Hardcoding image because it should (in theory) work always and forever. If you have a wiki acting as repo and you've overridden the canonical name Image: it's your own fault."
It was noted that the existing code could fail for unusual article path settings including a suffix if only the 'articleUrl' was available. Pretty corner case, and probably breaks a lot of other things, but who knows. :)
Went ahead and refactored this a bit to handle the case and feel a little cleaner to me...
Dropped the private getDescBaseUrl() method since this seems a little easier to handle directly in getDescriptionUrl() now.

15 years agoFix regression in Special:Ipblocklist caused by r43047 -- options arrays in show...
Brion Vibber [Wed, 10 Dec 2008 20:01:38 +0000 (20:01 +0000)]
Fix regression in Special:Ipblocklist caused by r43047 -- options arrays in show/hide links broken by being merged in the wrong order when moved from wfArrayMerge() to "+" operator.

15 years agoRevert r44119 "Remove extract() comment"
Brion Vibber [Wed, 10 Dec 2008 19:41:20 +0000 (19:41 +0000)]
Revert r44119 "Remove extract() comment"
extract() is pretty much the devil and shouldn't ever be used for safe, legible code because it makes it much more difficult to analyse the code -- you have to run around trying to track down the source of local variables and there's generally a lot of pain.
Removing the FIXME comment isn't a substitute for fixing it. ;)

15 years agoadd debug lines for UDP output so it can be more easily tested offline
Brion Vibber [Wed, 10 Dec 2008 18:49:16 +0000 (18:49 +0000)]
add debug lines for UDP output so it can be more easily tested offline

15 years agorevert r44412 and part of r44406: keep the improved new page URLs, but use the old...
Ilmari Karonen [Wed, 10 Dec 2008 18:41:28 +0000 (18:41 +0000)]
revert r44412 and part of r44406: keep the improved new page URLs, but use the old getInternalURL()/preg_replace() hack to generate them

15 years agoSeems r44406 would've broken the RC feed on secure.wikimedia org: fix by introducing...
Ilmari Karonen [Wed, 10 Dec 2008 17:03:57 +0000 (17:03 +0000)]
Seems r44406 would've broken the RC feed on secure.wikimedia org: fix by introducing a new config variable $wgRC2UDPScriptUrl (defaulting to $wgServer . $wgScript if not set).
NOTE: Wikimedia's secure.php needs to be updated to use the new variable.  It might be possible to retire the fixupSquidUrl() hack once this is done, though I'm not sure if anything else relies on it.

15 years ago(bug 4253, bug 16586) Don't repeat titles of new pages in URLs in the RC->IRC feed...
Ilmari Karonen [Wed, 10 Dec 2008 15:56:02 +0000 (15:56 +0000)]
(bug 4253, bug 16586) Don't repeat titles of new pages in URLs in the RC->IRC feed, use the shorter and more useful revision ID instead.
Also simplify URL construction: old code used to call Title::getInternalURL() to build the URLs and then undo most of the work with preg_replace().
(TODO: Maybe consider introducing new global $wgIRCLineURLPrefix to optionally override the $wgInternalServer.$wgScript prefix?)

15 years agoInit $parserCache only as needed
Aaron Schulz [Wed, 10 Dec 2008 15:30:46 +0000 (15:30 +0000)]
Init $parserCache only as needed

15 years agoLocalisation updates for core messages from Betawiki (2008-12-10 15:10 CET)
Siebrand Mazeland [Wed, 10 Dec 2008 14:19:51 +0000 (14:19 +0000)]
Localisation updates for core messages from Betawiki (2008-12-10 15:10 CET)

15 years agoAPI: (bug 16581) Fix regression from r44015 ("Various minor cleanup") which changed...
Roan Kattouw [Wed, 10 Dec 2008 14:12:54 +0000 (14:12 +0000)]
API: (bug 16581) Fix regression from r44015 ("Various minor cleanup") which changed Article::replaceSection() to treat $section=null as $section=0 rather than $section='' as it did before, causing a nasty API edit bug. When changing a function's behavior, please update the callers, and don't forget the API.

15 years agoFix for r44383: profiling error on unexisting class
Alexandre Emsenhuber [Wed, 10 Dec 2008 11:42:35 +0000 (11:42 +0000)]
Fix for r44383: profiling error on unexisting class

15 years agoRevert r44386; depends on wfInvoke, also reverted.
David McCabe [Wed, 10 Dec 2008 06:40:05 +0000 (06:40 +0000)]
Revert r44386; depends on wfInvoke, also reverted.

15 years agoRefactored UserMailer.php. Please let me know if this breaks anything.
David McCabe [Wed, 10 Dec 2008 06:02:14 +0000 (06:02 +0000)]
Refactored UserMailer.php. Please let me know if this breaks anything.

15 years ago* Don't set ETag if $wgUseETag = false
Aaron Schulz [Wed, 10 Dec 2008 05:33:57 +0000 (05:33 +0000)]
* Don't set ETag if $wgUseETag = false
* Avoid casting page ID as int twice

15 years agoReduce profile overhead here
Aaron Schulz [Wed, 10 Dec 2008 05:12:54 +0000 (05:12 +0000)]
Reduce profile overhead here

15 years agoMinor RawPage tweaks
Aaron Schulz [Wed, 10 Dec 2008 04:54:46 +0000 (04:54 +0000)]
Minor RawPage tweaks

15 years agoRemove noisy profiling
Aaron Schulz [Wed, 10 Dec 2008 04:40:18 +0000 (04:40 +0000)]
Remove noisy profiling

15 years agoCode style tweaks
Aaron Schulz [Wed, 10 Dec 2008 04:06:14 +0000 (04:06 +0000)]
Code style tweaks

15 years agoSet $wgProfileToDatabase = false
Aaron Schulz [Wed, 10 Dec 2008 03:59:43 +0000 (03:59 +0000)]
Set $wgProfileToDatabase = false

15 years ago(bug 14365) skip invalid titles in RepoGroup::findFiles()
Ilmari Karonen [Tue, 9 Dec 2008 23:20:44 +0000 (23:20 +0000)]
(bug 14365) skip invalid titles in RepoGroup::findFiles()

15 years agoWhitespace/style consistency
Aaron Schulz [Tue, 9 Dec 2008 23:00:28 +0000 (23:00 +0000)]
Whitespace/style consistency

15 years agoRevert r44367; ends up with an extra fetch :/
Aaron Schulz [Tue, 9 Dec 2008 22:28:34 +0000 (22:28 +0000)]
Revert r44367; ends up with an extra fetch :/

15 years agoDelay restriction fetching query
Aaron Schulz [Tue, 9 Dec 2008 22:24:21 +0000 (22:24 +0000)]
Delay restriction fetching query

15 years agoCleanup updateRestrictions() some
Aaron Schulz [Tue, 9 Dec 2008 22:12:29 +0000 (22:12 +0000)]
Cleanup updateRestrictions() some

15 years agoCleanup Title::getTouched()
Aaron Schulz [Tue, 9 Dec 2008 22:03:41 +0000 (22:03 +0000)]
Cleanup Title::getTouched()

15 years agoAllow curid for filecache
Aaron Schulz [Tue, 9 Dec 2008 21:40:06 +0000 (21:40 +0000)]
Allow curid for filecache

15 years agofix doxygen warnings
Alexandre Emsenhuber [Tue, 9 Dec 2008 19:54:30 +0000 (19:54 +0000)]
fix doxygen warnings

15 years agoLocalization update.
Rotem Liss [Tue, 9 Dec 2008 16:04:48 +0000 (16:04 +0000)]
Localization update.

15 years agoPer Brions suggestions http://www.mediawiki.org/wiki/Special:Code/MediaWiki/44245...
Raimond Spekking [Tue, 9 Dec 2008 15:21:07 +0000 (15:21 +0000)]
Per Brions suggestions mediawiki.org/wiki/Special:Code/MediaWiki/44245#c829
* Append the reason with a colon rather than wrapping in parens
* Rearrange the file-upload portion of the Special:Import form a bit
* Using one message for the comment field since it'll be identical in both parts of the form
More tweaks:
* Add labels for the transwiki import portion too
* Make the forms proper for RTL wikis

15 years agoDB layer compatibility with MySQL 5+ - allow both >Exec_master_log_pos and ->Exec_Mas...
Andrew Garrett [Tue, 9 Dec 2008 15:00:17 +0000 (15:00 +0000)]
DB layer compatibility with MySQL 5+ - allow both >Exec_master_log_pos and ->Exec_Master_Log_Pos in SHOW SLAVE STATUS.

15 years agoTweak profile calls
Aaron Schulz [Tue, 9 Dec 2008 11:51:00 +0000 (11:51 +0000)]
Tweak profile calls

15 years agoSpeed up filecache a tad
Aaron Schulz [Tue, 9 Dec 2008 11:41:31 +0000 (11:41 +0000)]
Speed up filecache a tad

15 years agoLocalisation updates for core messages from Betawiki (2008-12-09 08:38 CET)
Siebrand Mazeland [Tue, 9 Dec 2008 07:42:23 +0000 (07:42 +0000)]
Localisation updates for core messages from Betawiki (2008-12-09 08:38 CET)

15 years ago* Performance tweaks
Aaron Schulz [Tue, 9 Dec 2008 03:25:02 +0000 (03:25 +0000)]
* Performance tweaks
* Whitespace

15 years agoTweak check order to be slightly better
Aaron Schulz [Tue, 9 Dec 2008 02:55:49 +0000 (02:55 +0000)]
Tweak check order to be slightly better

15 years agoFixed empty list of footer links when no footer messages are set.
Trevor Parscal [Tue, 9 Dec 2008 01:21:54 +0000 (01:21 +0000)]
Fixed empty list of footer links when no footer messages are set.

15 years ago* (bug 14268) SVG image sizes now extracted with proper XML parser
Brion Vibber [Tue, 9 Dec 2008 00:26:09 +0000 (00:26 +0000)]
* (bug 14268) SVG image sizes now extracted with proper XML parser
Uses a filter with XmlTypeCheck. Yay!
Now works with UTF-16 sample file uploaded on the bug. Should work with large comments etc as well.

15 years agoFix MySQL-centrism in comment
Aryeh Gregor [Mon, 8 Dec 2008 23:10:24 +0000 (23:10 +0000)]
Fix MySQL-centrism in comment

15 years agoMake pageCond() use PK is ID is already cached
Aaron Schulz [Mon, 8 Dec 2008 22:30:58 +0000 (22:30 +0000)]
Make pageCond() use PK is ID is already cached

15 years ago* fix doxygen warnings
Alexandre Emsenhuber [Mon, 8 Dec 2008 17:29:24 +0000 (17:29 +0000)]
* fix doxygen warnings
* fix whitespaces

15 years agoCheck if wfDebug() is defined before calling it since AutoLoader.php is loaded before...
Alexandre Emsenhuber [Mon, 8 Dec 2008 15:35:06 +0000 (15:35 +0000)]
Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before GlobalFunctions.php and may result in fatal error

15 years agoTweak r44296: use autoloader if it is set there
Aaron Schulz [Mon, 8 Dec 2008 11:48:08 +0000 (11:48 +0000)]
Tweak r44296: use autoloader if it is set there

15 years ago*Skip autoloading of skin, always does inefficient strtolower() stuff and fails ...
Aaron Schulz [Mon, 8 Dec 2008 00:35:59 +0000 (00:35 +0000)]
*Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway
*Add wfDebug() call on class load failure

15 years ago*Minor cleanup
Aaron Schulz [Mon, 8 Dec 2008 00:10:22 +0000 (00:10 +0000)]
*Minor cleanup
*Whitespace

15 years agoAssign by ref to make sure cache fields carry over
Aaron Schulz [Sun, 7 Dec 2008 21:57:33 +0000 (21:57 +0000)]
Assign by ref to make sure cache fields carry over

15 years agoLocalisation updates for core messages from Betawiki (2008-12-07 20:57 CET)
Siebrand Mazeland [Sun, 7 Dec 2008 20:01:21 +0000 (20:01 +0000)]
Localisation updates for core messages from Betawiki (2008-12-07 20:57 CET)

15 years agoFix doxygen warnings
Alexandre Emsenhuber [Sun, 7 Dec 2008 19:56:02 +0000 (19:56 +0000)]
Fix doxygen warnings

15 years agoLocalisation updates for core messages from Betawiki (2008-12-07 00:49 CET)
Siebrand Mazeland [Sat, 6 Dec 2008 23:59:44 +0000 (23:59 +0000)]
Localisation updates for core messages from Betawiki (2008-12-07 00:49 CET)

15 years ago(bug 16577) When a blocked user tries to rollback a page, the block message is now...
Alexandre Emsenhuber [Sat, 6 Dec 2008 21:16:55 +0000 (21:16 +0000)]
(bug 16577) When a blocked user tries to rollback a page, the block message is now only displayed once

15 years agoRevert r44130,r44129 - breaks display of message
Aaron Schulz [Sat, 6 Dec 2008 18:24:03 +0000 (18:24 +0000)]
Revert r44130,r44129 - breaks display of message

15 years ago(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')
Aaron Schulz [Sat, 6 Dec 2008 18:00:17 +0000 (18:00 +0000)]
(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')

15 years agoFix up Configure extension logo setting handling:
Andrew Garrett [Sat, 6 Dec 2008 00:32:12 +0000 (00:32 +0000)]
Fix up Configure extension logo setting handling:
* Replace annoying button with an onblur preview and server-side conversion of file names into URLs.

15 years agoBow out more gracefully if we can't write to the file. We've already got the foreign...
Chad Horohoe [Fri, 5 Dec 2008 20:22:43 +0000 (20:22 +0000)]
Bow out more gracefully if we can't write to the file. We've already got the foreign thumb URL on hand, so just use that.

15 years agoUse boolean searching with '?' char
Aaron Schulz [Fri, 5 Dec 2008 18:16:01 +0000 (18:16 +0000)]
Use boolean searching with '?' char

15 years agoCleanup to wfGetNull():
Chad Horohoe [Fri, 5 Dec 2008 17:25:22 +0000 (17:25 +0000)]
Cleanup to wfGetNull():
* Add override in case /dev/null isn't accessible (bug 11009)
* Use wfGetNull() in ProxyTools rather than hardcoding it

15 years agoKeep form only for "file:" searches
Aaron Schulz [Fri, 5 Dec 2008 17:10:35 +0000 (17:10 +0000)]
Keep form only for "file:" searches

15 years agoLocalization update.
Rotem Liss [Fri, 5 Dec 2008 16:13:56 +0000 (16:13 +0000)]
Localization update.

15 years agoXHTML fix
Aaron Schulz [Fri, 5 Dec 2008 14:37:58 +0000 (14:37 +0000)]
XHTML fix

15 years agoFollow up on r44248:
Siebrand Mazeland [Fri, 5 Dec 2008 08:10:02 +0000 (08:10 +0000)]
Follow up on r44248:
* update messages.inc
* consistency update in message

15 years agoNew file upload content type checks using a simulation of IE's content type detection...
Tim Starling [Fri, 5 Dec 2008 05:35:22 +0000 (05:35 +0000)]
New file upload content type checks using a simulation of IE's content type detection algorithm.

15 years agoFollow up on r44245:
Siebrand Mazeland [Fri, 5 Dec 2008 02:29:52 +0000 (02:29 +0000)]
Follow up on r44245:
* update messages.inc
* rebuild MessagesEn.php
* copy 'filerevert-comment' to 'import-upload-comment', and 'import-comment'

15 years agohandle xmlns for imports (bug #4520)
Ariel Glenn [Fri, 5 Dec 2008 02:16:11 +0000 (02:16 +0000)]
handle xmlns for imports (bug #4520)

15 years agolog comment for imports (bug #12728)
Ariel Glenn [Fri, 5 Dec 2008 02:14:11 +0000 (02:14 +0000)]
log comment for imports (bug #12728)

15 years agoActually make exists() useful here. Because of the order in which things are loaded...
Chad Horohoe [Thu, 4 Dec 2008 21:21:48 +0000 (21:21 +0000)]
Actually make exists() useful here. Because of the order in which things are loaded, we've actually _already_ loaded the metadata prior to calling the constructor. It's safe to assume when making a new ForeignAPIFile that we'll want it to exist at that point. However, we'll default to false as it's safer to assume it doesn't exist and skip ourselves some Http requests. You should probably only be using newFromTitle() anyway :)

15 years agoSame as before, hardcoding Image: is safer.
Chad Horohoe [Thu, 4 Dec 2008 18:23:52 +0000 (18:23 +0000)]
Same as before, hardcoding Image: is safer.

15 years agoAPI: (bug 16541) Adding block expiry timestamp to list=logevents output (calculated...
Roan Kattouw [Thu, 4 Dec 2008 15:59:26 +0000 (15:59 +0000)]
API: (bug 16541) Adding block expiry timestamp to list=logevents output (calculated from the block's timestamp and its duration)

15 years agoRevert part of r44232, accidentally committed too much
Roan Kattouw [Thu, 4 Dec 2008 15:55:47 +0000 (15:55 +0000)]
Revert part of r44232, accidentally committed too much

15 years agoAPI: (bug 16515) Added pst and onlypst parameters to action=parse, which do a pre...
Roan Kattouw [Thu, 4 Dec 2008 15:51:39 +0000 (15:51 +0000)]
API: (bug 16515) Added pst and onlypst parameters to action=parse, which do a pre-save transform on the input

15 years agoAPI: Recommit r44182 (Added usprop=canemail to list=users) and rename canemail to...
Roan Kattouw [Thu, 4 Dec 2008 14:42:30 +0000 (14:42 +0000)]
API: Recommit r44182 (Added usprop=canemail to list=users) and rename canemail to emailable

15 years agoLocalisation updates from Betawiki. Namespaces and special page aliases
Siebrand Mazeland [Thu, 4 Dec 2008 12:28:33 +0000 (12:28 +0000)]
Localisation updates from Betawiki. Namespaces and special page aliases

15 years agoAdd file namespaces for pt and pt-br to each other per request by 555.
Siebrand Mazeland [Thu, 4 Dec 2008 11:28:44 +0000 (11:28 +0000)]
Add file namespaces for pt and pt-br to each other per request by 555.

15 years agoLocalisation updates for extension messages from Betawiki (2008-12-04 10:28 CET)
Siebrand Mazeland [Thu, 4 Dec 2008 09:41:57 +0000 (09:41 +0000)]
Localisation updates for extension messages from Betawiki (2008-12-04 10:28 CET)

15 years agoCleanup, syntax errors and such.
Chad Horohoe [Thu, 4 Dec 2008 02:09:49 +0000 (02:09 +0000)]
Cleanup, syntax errors and such.

15 years agoFollowup to r44204. Hardcoding image because it should (in theory) work always and...
Chad Horohoe [Thu, 4 Dec 2008 01:58:45 +0000 (01:58 +0000)]
Followup to r44204. Hardcoding image because it should (in theory) work always and forever. If you have a wiki acting as repo and you've overridden the canonical name Image: it's your own fault.

15 years agoUpdate on r44048:
Nathaniel Herman [Thu, 4 Dec 2008 01:39:01 +0000 (01:39 +0000)]
Update on r44048:
Removing SpecialListusersGetGroups hook completely, and changing the
UsersPager::getGroups function to use User::getEffectiveGroups instead
of directly making a DB query itself.

15 years agoRevert r44185, r44186 -- "Foreign repos (API or DB) now fetch images and/or descripti...
Brion Vibber [Wed, 3 Dec 2008 23:49:04 +0000 (23:49 +0000)]
Revert r44185, r44186 -- "Foreign repos (API or DB) now fetch images and/or description pages if the repo wiki has a different canonical name for the File: namespace. Added 'fileNamespace' configuration item to $wgForeignFileRepos to override the local canonical name."
The canonical-canonical 'Image' namespace name should always be used here for compatibility; an extra configuration option is unnecessary and adds confusion.

15 years agoPull back r44182 for now "* API: (bug 16526) Added usprop=canemail to list=users...
Brion Vibber [Wed, 3 Dec 2008 23:37:27 +0000 (23:37 +0000)]
Pull back r44182 for now "* API: (bug 16526) Added usprop=canemail to list=users, which tells whether a user can (and wants to be) e-mailed through [[Special:Emailuser]]."
"canemail" is ambiguously named, and on first blush indicates that the user "can email", which would mean that they can *send* email, which doesn't appear to be what it's used for.

15 years agoFollow-up to r44169 -- remove release note saying a hook was added since it's been...
Brion Vibber [Wed, 3 Dec 2008 22:19:25 +0000 (22:19 +0000)]
Follow-up to r44169 -- remove release note saying a hook was added since it's been removed since :)

15 years ago* (bug 13342) importScript() generates more consistent URI encoding
Brion Vibber [Wed, 3 Dec 2008 21:52:40 +0000 (21:52 +0000)]
* (bug 13342) importScript() generates more consistent URI encoding

Switches order of URL to put title first, and encodes ':' and '/' consistently with MediaWiki general URI encoding.

The current implementation escapes ':' and '/', producing URLs like this:

/trunk/index.php?action=raw&ctype=text/javascript&title=MediaWiki%3ASysop.js

If we're recommending consistent use of importScript() it probably doesn't really matter, but it wouldn't hurt to be self-consistent with how we generate other URLs... of course even with the change to the encoding, the order of the pieces is different.

MediaWiki usually generates URLs with the title component first; also caching options will differ depending on who's generating the URL and when.

15 years agoTypo in comment
Chad Horohoe [Wed, 3 Dec 2008 19:34:41 +0000 (19:34 +0000)]
Typo in comment

15 years agoAPI: (bug 16548) list=search threw invalid errors under certain circumstances
Roan Kattouw [Wed, 3 Dec 2008 19:33:57 +0000 (19:33 +0000)]
API: (bug 16548) list=search threw invalid errors under certain circumstances