Aaron Schulz [Sun, 25 May 2008 00:32:08 +0000 (00:32 +0000)]
Tweak comment
Aaron Schulz [Sun, 25 May 2008 00:31:28 +0000 (00:31 +0000)]
Rename 'hiderevision' to 'suppressrevision'
Aaron Schulz [Sat, 24 May 2008 23:56:07 +0000 (23:56 +0000)]
Extra sanity check
Roan Kattouw [Sat, 24 May 2008 21:54:57 +0000 (21:54 +0000)]
Add array support to wfArrayToCGI(): when receiving parameters in the form of &foo[]=bar&foo[]=baz, PHP automatically sets $_GET['foo'] = array(bar, baz); When feeding the original query back to wfArrayToCGI(), it used to choke on that. Now wfArrayToCGI() actually converts array('bar', 'baz'); back to the &foo[]=bar&foo[]=baz form.
Alexandre Emsenhuber [Sat, 24 May 2008 20:51:08 +0000 (20:51 +0000)]
Document ImagePageFindFile hook
Bryan Tong Minh [Sat, 24 May 2008 20:48:45 +0000 (20:48 +0000)]
On second thought file undeletion is supported; just not undeleting a specific file. Added relevant hook for this.
Bryan Tong Minh [Sat, 24 May 2008 20:44:49 +0000 (20:44 +0000)]
* Add wfRunHook calls where appropriate
* Fix handling of file redirects in ApiDelete
* Throw an error when a file is undeleted as this is not supported
Huji [Sat, 24 May 2008 19:40:07 +0000 (19:40 +0000)]
Localisation updates: Adding/updating Persian translations
Siebrand Mazeland [Sat, 24 May 2008 18:02:35 +0000 (18:02 +0000)]
Fix "oops" in previous commit.
Siebrand Mazeland [Sat, 24 May 2008 17:58:21 +0000 (17:58 +0000)]
* remove "Patch by <name>"
* remove end of line periods for consistency
* update localisations section
Aaron Schulz [Sat, 24 May 2008 16:57:51 +0000 (16:57 +0000)]
Add getRevisionId()
Ryan Schmidt [Sat, 24 May 2008 16:49:05 +0000 (16:49 +0000)]
* fixing bug 14241: pages can no longer be protected to levels you are not in
Bryan Tong Minh [Sat, 24 May 2008 16:36:52 +0000 (16:36 +0000)]
Rather than "fix a security leak", specify what this leak is.
Siebrand Mazeland [Sat, 24 May 2008 15:12:41 +0000 (15:12 +0000)]
Localisation updates for core messages from Betawiki (2008-05-24 16:53 CEST)
Leon Weber [Sat, 24 May 2008 14:55:54 +0000 (14:55 +0000)]
* Refactored Article::getAutosummary(), so there's not a very simple static function called for every
autosummary case, instead just include the appropriate code, which makes the whole thing much shorter
and cleaner.
* Removed Article::getRedirectAutosummary() and Article::getBlankingAutosummary(), which were obsolete
then.
* Article::getRedirectAutosummary() was called from EditPage::internalAttemptSave() as check if the page
being edited is a redirect. Replaced that function call with the one-line routine which was used in the
former Article::getRedirectAutosummary() function. We should have this check in some general static
function, though.
Shinjiman [Sat, 24 May 2008 12:55:06 +0000 (12:55 +0000)]
Update the Chinese conversion tables
Leon Weber [Sat, 24 May 2008 09:39:51 +0000 (09:39 +0000)]
Arg, of course I forgot that again.
Leon Weber [Sat, 24 May 2008 09:37:45 +0000 (09:37 +0000)]
Paging links on special pages now have CSS classes and are greyed out by default when disabled. Somehow related to bug 14244.
Leon Weber [Sat, 24 May 2008 08:32:42 +0000 (08:32 +0000)]
(bug 12145) Kazakh localisation updates, modified patch 4921 by AlefZet
Rotem Liss [Sat, 24 May 2008 06:43:48 +0000 (06:43 +0000)]
Update.
Shinjiman [Sat, 24 May 2008 03:51:10 +0000 (03:51 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Danny B [Sat, 24 May 2008 01:04:32 +0000 (01:04 +0000)]
* Bug 14245 - Bot flag not shown on RC IRC posts
* switching the M & N flags order
Aryeh Gregor [Fri, 23 May 2008 22:20:09 +0000 (22:20 +0000)]
Syntax error
Robert Leverington [Fri, 23 May 2008 22:18:57 +0000 (22:18 +0000)]
* Remove "DO NOT EDIT" notices from a couple of the message files, these should have been deleted a long time ago.
* Fix a typo in one of my previous commits.
Niklas Laxström [Fri, 23 May 2008 22:17:13 +0000 (22:17 +0000)]
* And the variable definition for my previous commit
Robert Leverington [Fri, 23 May 2008 22:15:13 +0000 (22:15 +0000)]
* These should also all be @ingroup, not @addtogroup.
Niklas Laxström [Fri, 23 May 2008 22:14:32 +0000 (22:14 +0000)]
* New option $wgPerLanguageCaching, for wikies with many translated system messages in MediaWiki namespace.
* Sidebar is now cached for all languages
Robert Leverington [Fri, 23 May 2008 22:12:06 +0000 (22:12 +0000)]
* Partially revert 35259; this should be @ingroup not @addtogroup.
Leon Weber [Fri, 23 May 2008 22:07:35 +0000 (22:07 +0000)]
* Updating RELEASE-NOTES for last commit, which accidently had no commit message.
Last commit message:
* (bug 14243) Fix security leak in edit api; patch 4920 by HardDisk
* (bug 12145) Kazakh localisation updates; part of patch 4919 by AlefZet
Leon Weber [Fri, 23 May 2008 22:02:23 +0000 (22:02 +0000)]
Aryeh Gregor [Fri, 23 May 2008 22:00:14 +0000 (22:00 +0000)]
Code simplification (-205 bytes :P):
* Add MWNamespace::hasSubpages() and use that instead of $wgNamespacesWithSubpages everywhere
* Put early returns first, and don't else { } the rest of the code
Aryeh Gregor [Fri, 23 May 2008 21:31:39 +0000 (21:31 +0000)]
Fix another bug pointed out by Brion, pseudo-subpages can get moved.
Aryeh Gregor [Fri, 23 May 2008 21:22:54 +0000 (21:22 +0000)]
Fix bug: we still need to move subpages if we're moving the talk page, and the talk namespace allows subpages.
Aaron Schulz [Fri, 23 May 2008 21:12:47 +0000 (21:12 +0000)]
Remove unused var
Brion Vibber [Fri, 23 May 2008 21:11:12 +0000 (21:11 +0000)]
restore movepage-page-moved from r35213, seems to have been removed by some subsequent update
Brion Vibber [Fri, 23 May 2008 20:31:41 +0000 (20:31 +0000)]
drop redundant wfTimestamp() call... we already got it formatted in TS_MW from decodeExpiry()
Alexandre Emsenhuber [Fri, 23 May 2008 20:06:25 +0000 (20:06 +0000)]
phpdoc -> doxygen
Brion Vibber [Fri, 23 May 2008 19:26:44 +0000 (19:26 +0000)]
add timestamps to runJobs output, should make it easier to track down stuck job queue runners
Alexandre Emsenhuber [Fri, 23 May 2008 18:14:11 +0000 (18:14 +0000)]
(bug 12145) Kazakh message updates
Niklas Laxström [Fri, 23 May 2008 17:40:06 +0000 (17:40 +0000)]
* Update plural for uk
Aryeh Gregor [Fri, 23 May 2008 17:15:33 +0000 (17:15 +0000)]
Reduce default max pages to move at once to 100, primarily to keep RC spam to sane levels until a more reasonable fix can be thought up.
Aryeh Gregor [Fri, 23 May 2008 17:09:28 +0000 (17:09 +0000)]
* Don't allow moving with subpages to a namespace that doesn't allow subpages. Such a move is only questionably reasonable, and even if reasonable it's not possible to revert it.
* Use a consistent test for whether a namespace permits subpages: empty(), not isset or boolean test with errors suppressed or a combination of those. The isset test alone (used in isSubpage()) is particularly broken because it returns true if the namespace is explicitly set to *not* allow namespaces, and only returns false if the entry is unset.
* Reshuffle some global declarations, simplify a conditional block
Aaron Schulz [Fri, 23 May 2008 16:55:52 +0000 (16:55 +0000)]
Add PageHistoryPager::getQueryInfo
Aaron Schulz [Fri, 23 May 2008 16:47:39 +0000 (16:47 +0000)]
* Add $wgFlaggedRevsVisible back. Made for third-party use.
* Add hook to JOIN for data for page history, rather than query spam
* Fix a panty load of E_STRICT errors
* Tweak variable name
Rotem Liss [Fri, 23 May 2008 15:27:19 +0000 (15:27 +0000)]
Update for he.
Alexandre Emsenhuber [Fri, 23 May 2008 15:08:33 +0000 (15:08 +0000)]
Update messages.inc and rebuild MessagesEn.php
Leon Weber [Fri, 23 May 2008 13:53:54 +0000 (13:53 +0000)]
German localisation updates. Patch by raymond.
Huji [Fri, 23 May 2008 10:55:54 +0000 (10:55 +0000)]
* Adding/updating Persian translations
* Adding an ignored message to the ingored messages list
Siebrand Mazeland [Fri, 23 May 2008 10:40:56 +0000 (10:40 +0000)]
Localisation updates. Messages imported from cv.wp and ln.wp
Andrew Garrett [Fri, 23 May 2008 10:34:11 +0000 (10:34 +0000)]
Core changes for GlobalBlocking and TorBlock extensions, plus some core refactoring work:
* Instead of saying 'do that' in a permissions error, actually list what the action is (drawn from the right-$1 messages). This isn't perfect - it says you don't have permission to edit pages when
you can't edit a single page, but it's better than 'do that'.
* Refactor out some code from various block files into Block::formatExpiry and Block::parseExpiryInput.
* Don't display 'you cannot edit special pages' when you're trying to execute, or create an account, or something like that.
* New AbortAutoblock hook (for use in TorBlock extension), which allows extensions to cancel autoblocks.
Tim Starling [Fri, 23 May 2008 09:03:49 +0000 (09:03 +0000)]
In FlaggedRevs:
* Moved the FlaggedRevs class to its own file
* Removed $wgFlaggedArticle, store an instance inside the Article object instead. Also store a reference in the Title object, since some hooks only have a Title available.
* Modified all hooks which were previously calling $wgFlaggedArticle directly to go via an instance loader function.
* Merged hook functions for ArticleViewHeader and DiffViewHeader
* Changed the way FlaggedRevs sets the right image version in ImagePage, to avoid a function call on startup
* Some coding style changes, such as consistent variable case, consistent indenting style, meaningful variable names, etc.
* Fixed typo in updateAutoPromote.php
* Removed the $wgFlaggedRevsVisible feature, this doesn't seem to be in keeping with our mission so I couldn't see the point in spending a lot of time fixing its bugs. Revert if necessary.
* Use Xml::encodeJsVar() to transfer data from PHP to JS, don't DIY
* Use OutputPage::addHeadItem() instead of an infinite-lifetime variable to ensure that only one copy of the header item is added. OutputPage objects may come and go.
Tim Starling [Fri, 23 May 2008 09:00:08 +0000 (09:00 +0000)]
Fixed sloppy usage of Database::selectField() in getPreviousRevisionID() and getNextRevisionID()
Tim Starling [Fri, 23 May 2008 08:54:19 +0000 (08:54 +0000)]
Clarify behaviour of wfGetDB(DB_SLAVE)
Aaron Schulz [Fri, 23 May 2008 07:33:35 +0000 (07:33 +0000)]
Remove shitty ass useless fucking ampersands that just make it harder to avoid fucking strict notices
Siebrand Mazeland [Fri, 23 May 2008 07:28:08 +0000 (07:28 +0000)]
Localisation updates. Rebuilt all language files.
Siebrand Mazeland [Fri, 23 May 2008 07:26:48 +0000 (07:26 +0000)]
Localisation updates. Rebuilt all language files.
Niklas Laxström [Fri, 23 May 2008 07:20:52 +0000 (07:20 +0000)]
* PHP Strict Standards: Only variables should be passed by reference in <>
Siebrand Mazeland [Fri, 23 May 2008 07:11:21 +0000 (07:11 +0000)]
Localisation updates. Some messages imported from af.wp. Removed Wikimedia specific messages.
Siebrand Mazeland [Fri, 23 May 2008 06:56:49 +0000 (06:56 +0000)]
Localisation updates. 15 messages imported from af.wp.
Aryeh Gregor [Fri, 23 May 2008 01:11:17 +0000 (01:11 +0000)]
Re-commit cleaned-up version of r33565 (move subpages along with page).
* Move subpages checkbox is not shown unless the current page or its talk page actually has subpages.
* Move subpages checkbox is shown if subpages are disabled for the current namespace, provided that the talk page has subpages (but then it has no effect unless the "move talk" box is also checked).
* Unnecessary ampersands expunged, superfluous ternary operators excised.
* Crazy 1=0 query removed.
* Limit of maximum number of pages to move at once added (default 1000).
One niggling annoyance is that if the maximum number of pages is hit due to the base page having too many subpages, the talk page probably won't be moved due to the order that results are returned, which is kind of unexpected. Also, make sure the queries don't cause MySQL 4 to explode -- MySQL sometimes has problems with OR, especially older versions. Other than that, should be production-ready, I think.
Aaron Schulz [Thu, 22 May 2008 22:49:23 +0000 (22:49 +0000)]
* Use $limit = min( $wgFeedLimit, $limit ); to shorten things
* Add comment
Aaron Schulz [Thu, 22 May 2008 22:36:00 +0000 (22:36 +0000)]
Make saveContent() protected
Aaron Schulz [Thu, 22 May 2008 22:33:34 +0000 (22:33 +0000)]
Doc
Meno25 [Thu, 22 May 2008 22:22:36 +0000 (22:22 +0000)]
Bug 12145 Kazakh message updates
Patch by: AlefZet
Aaron Schulz [Thu, 22 May 2008 22:19:19 +0000 (22:19 +0000)]
Break long lines
Siebrand Mazeland [Thu, 22 May 2008 21:41:30 +0000 (21:41 +0000)]
Localisation updates for core messages from Betawiki (2008-05-22 23:32 CEST)
Siebrand Mazeland [Thu, 22 May 2008 21:37:56 +0000 (21:37 +0000)]
Localisation updates for core messages from Betawiki (2008-05-22 23:32 CEST)
Roan Kattouw [Thu, 22 May 2008 21:33:25 +0000 (21:33 +0000)]
(bug 14231) Tweak help for action=edit
Ilmari Karonen [Thu, 22 May 2008 20:02:03 +0000 (20:02 +0000)]
(bug 14140) URL-encoded page titles are now decoded in edit summaries
Alexandre Emsenhuber [Thu, 22 May 2008 19:48:26 +0000 (19:48 +0000)]
Fix some doxygen warnings
Brion Vibber [Thu, 22 May 2008 18:34:39 +0000 (18:34 +0000)]
* (bug 14220) Disabling $wgCheckFileExtensions now works without also disabling $wgStrictFileExtensions
Niklas Laxström [Thu, 22 May 2008 18:13:47 +0000 (18:13 +0000)]
* Plural for badsiglength
Niklas Laxström [Thu, 22 May 2008 17:56:29 +0000 (17:56 +0000)]
* Update plural code
Aryeh Gregor [Thu, 22 May 2008 17:24:46 +0000 (17:24 +0000)]
-136 lines of worthless code. Even if the idea was hypothetically good, which I'm not sure of, nobody is using CategoryList anywhere and I don't foresee any use for it. Also makes what remains considerably easier to read (no looping, etc.). This seems to work correctly, but I might have missed something somewhere, so be on the lookout.
Brion Vibber [Thu, 22 May 2008 16:47:12 +0000 (16:47 +0000)]
Clean up r35180: prettify some functions, break some long lines and odd constructions.
Brion Vibber [Thu, 22 May 2008 16:39:43 +0000 (16:39 +0000)]
Revert r35178 and normalize User's getID() and setID() methods to prettier getId() and setId()
This doesn't accomplish anything, of course, but if you're going to run around changing them, at least make em prettier eh? :)
Brion Vibber [Thu, 22 May 2008 16:25:45 +0000 (16:25 +0000)]
* Fix typo in ApiQueryImageInfo which made mime type query fail to work :)
* Fix ForeignAPIRepo's query to use the corrected parameter to the API
* ForeignAPIFile fixes to use queried mime type if available, and type-safety checks in case some values are missing or funny
Brion Vibber [Thu, 22 May 2008 16:17:42 +0000 (16:17 +0000)]
ForeignAPIRepo fixes:
* use the proper factory method so findFile accepts strings as well as Title objects; fixes API image queries
* pass timestamp and SHA-1 hash on
Aaron Schulz [Thu, 22 May 2008 15:44:46 +0000 (15:44 +0000)]
* Remove cruft $time parameter from findFiles()
* Fucking document this fucking function
Aaron Schulz [Thu, 22 May 2008 15:15:00 +0000 (15:15 +0000)]
* Remove pointless newline
* It helps not to through fatal errors everywhere if not title
* Add optional $pageId param to getTimestampFromID() to avoid a secondary lookup, not that anything uses this function anyway...
Aaron Schulz [Thu, 22 May 2008 15:02:33 +0000 (15:02 +0000)]
Revision:getId() not getID()
Aaron Schulz [Thu, 22 May 2008 14:57:07 +0000 (14:57 +0000)]
*The function is User::getID() not getId()
Siebrand Mazeland [Thu, 22 May 2008 06:30:31 +0000 (06:30 +0000)]
Localisation updates for extension messages from Betawiki (2008-05-22 08:23 CEST)
Aaron Schulz [Thu, 22 May 2008 04:53:05 +0000 (04:53 +0000)]
It helps if doc is accurate ;)
Ilmari Karonen [Thu, 22 May 2008 01:29:33 +0000 (01:29 +0000)]
Make Special:Upload display detailed permissions errors. Also avoid checking for 'create' permissions if the target title already exists.
Aaron Schulz [Thu, 22 May 2008 01:12:51 +0000 (01:12 +0000)]
Respect $wgShowUpdatedMarker
Aaron Schulz [Thu, 22 May 2008 01:03:45 +0000 (01:03 +0000)]
*Redo newRevisionFromEditComplete hook. Pass an Article instead of a title
*Use prepareTextForEdit() to avoid double parsing
*Parser cache will be saved again later, so need to do it twice in a row
Aaron Schulz [Wed, 21 May 2008 23:17:30 +0000 (23:17 +0000)]
Pass in $flags to getArticleId()
Brion Vibber [Wed, 21 May 2008 23:00:49 +0000 (23:00 +0000)]
Cache image API lookups in-process and, if available, in memcached for up to 1 hour.
Cuts down on duplicate lookups...
Brion Vibber [Wed, 21 May 2008 22:39:08 +0000 (22:39 +0000)]
ForeignAPIRepo fixes:
* Now supports thumbnails!
* SVG seems to work
* Comments now working in version info
* Can fetch description pages without extra configuration (assuming standard script layout)
* Asks server for mime type, but doesn't get it back yet
Brion Vibber [Wed, 21 May 2008 22:36:53 +0000 (22:36 +0000)]
Don't assume the file repository will always return an object when checking for dupes
Aaron Schulz [Wed, 21 May 2008 22:28:21 +0000 (22:28 +0000)]
Minor comment tweak
Aaron Schulz [Wed, 21 May 2008 22:20:07 +0000 (22:20 +0000)]
Logic errors
Aaron Schulz [Wed, 21 May 2008 21:33:58 +0000 (21:33 +0000)]
*Respect displayImg
*Add getDisplayedFile()
Aaron Schulz [Wed, 21 May 2008 21:23:04 +0000 (21:23 +0000)]
Cleanup for displaying old versions
Aaron Schulz [Wed, 21 May 2008 21:09:31 +0000 (21:09 +0000)]
Fix yet more image links bugs
Roan Kattouw [Wed, 21 May 2008 20:07:10 +0000 (20:07 +0000)]
(bug 14212) Undefined variable $retval in Skin::subPageSubtitle()
Alexandre Emsenhuber [Wed, 21 May 2008 18:18:58 +0000 (18:18 +0000)]
Doc tweaks:
* @ingrouo -> @ingroup (whoops!)
* Fix doxygen warnings
* Remove duplicate definition of $wgMetaNamespaceTalk in DefaultSettings.php, thanks to VasilievVV for pointing this out
Aaron Schulz [Wed, 21 May 2008 16:26:53 +0000 (16:26 +0000)]
Move rewRevisionFromEditComplete call down till after page rows set
Roan Kattouw [Wed, 21 May 2008 14:33:27 +0000 (14:33 +0000)]
API: Requesting a token you aren't allowed to request no longer dies with an error but just throws a warning and doesn't give you the token.