lhc/web/wiklou.git
12 years agoFix Bug #31547 - Category links need less spacing and better wrapping
Mark A. Hershberger [Mon, 7 Nov 2011 17:03:24 +0000 (17:03 +0000)]
Fix Bug #31547 - Category links need less spacing and better wrapping

Updated patch from Erwin Dokter

12 years agobug 31990 justify paragraphs pref adds extra space to category listing
Antoine Musso [Mon, 7 Nov 2011 16:46:22 +0000 (16:46 +0000)]
bug 31990 justify paragraphs pref adds extra space to category listing

When text justification is enabled in user preference, the category list
could show a large space before the first category. Overriding the element
to use left justification is enough to fix the spacing issue albeit the
categories will no more justified.

Thanks to lupo with bug 31990 comments number 8 hinting at the catlinks
element not being properly justified.

This is a regression in REL1_18 and need a backport.

12 years agobug 29110 - $wgFeedDiffCutoff doesn't affect new pages
Antoine Musso [Mon, 7 Nov 2011 16:12:37 +0000 (16:12 +0000)]
bug 29110 - $wgFeedDiffCutoff doesn't affect new pages

Patch by John Du Hart. Rewritten to avoid code duplication, duplicate
code is now in a helper function.

12 years agofix badly named variable
Antoine Musso [Mon, 7 Nov 2011 15:36:06 +0000 (15:36 +0000)]
fix badly named variable

Resource takes two S in french :D
follow up r102286

12 years agoearly returns to avoid long code in if / else
Antoine Musso [Mon, 7 Nov 2011 14:57:55 +0000 (14:57 +0000)]
early returns to avoid long code in if / else

Instead of enclosing a lot of code in a if() {} block. I reverted the logic
to exit early. That makes code a bit easier to read.

Logic was:
 if( $title->getNamespace() >= 0 && !$accErrors && $newid ) {
   // LOT OF CODE
 }
 return;

Now:
 if( $title->getNamespace() < 0 || $accErrors || !$newid ) {
   return;
 }
 // LOT OF CODE

12 years agodieout when file is a boolean
Antoine Musso [Mon, 7 Nov 2011 14:46:49 +0000 (14:46 +0000)]
dieout when file is a boolean

On file operation errors, the file variable can be assigned boolean false
which is not a valid handle. Those backtrace can help users debug an issue
when generating a filemap.

12 years agoBug 30232 - add current time to message wlnote on Special:Watchlist
Antoine Musso [Mon, 7 Nov 2011 14:20:17 +0000 (14:20 +0000)]
Bug 30232 - add current time to message wlnote on Special:Watchlist

Patch by Umherirrender. I did remove the rcnote message being used most
probably before we had support for {{PLURAL}}. So now we just rely
on the wlnote message.

As requested by Niklas, the timeanddate parameter was dropped from
original patch.

Umherirrender is already in the CREDITS file.

12 years agoRemoved useless second parameter to Title::quickUserCan()
Alexandre Emsenhuber [Mon, 7 Nov 2011 13:54:03 +0000 (13:54 +0000)]
Removed useless second parameter to Title::quickUserCan()

12 years ago* Removed existence of Title object check since not having it would make other things...
Alexandre Emsenhuber [Mon, 7 Nov 2011 13:51:40 +0000 (13:51 +0000)]
* Removed existence of Title object check since not having it would make other things crash in the same function
* Moved isArticleRelated() check one level up
* And pass the User object to Title::quickUserCan()

12 years ago* Fix checks to show whether "edit" and "addsection" tabs should be marked as active...
Alexandre Emsenhuber [Mon, 7 Nov 2011 13:42:35 +0000 (13:42 +0000)]
* Fix checks to show whether "edit" and "addsection" tabs should be marked as active so there's one, and only one active tab
* Follow-up r102192: simply call isProtect() to see if the page is protected, it also handles creation protection

12 years agoUpdate date format for dsb and hsb: month names need the genitive, make them consistent
Raimond Spekking [Mon, 7 Nov 2011 12:49:12 +0000 (12:49 +0000)]
Update date format for dsb and hsb: month names need the genitive, make them consistent
Per discussion on https://translatewiki.net/wiki/Thread:User_talk:Raymond/Formatierung_einer_Datumsvariable

12 years agoAllow for installation of php in ~/.mwphp and don't die if maintenance/dev/data alrea...
Daniel Friesen [Sun, 6 Nov 2011 23:49:16 +0000 (23:49 +0000)]
Allow for installation of php in ~/.mwphp and don't die if maintenance/dev/data already existsy

12 years agoFollowup r102201, quote all variables to guard against paths with spaces in them.
Daniel Friesen [Sun, 6 Nov 2011 23:13:36 +0000 (23:13 +0000)]
Followup r102201, quote all variables to guard against paths with spaces in them.

12 years agoCommit maintenance/dev/ a set of bash scripts that can quickly download php 5.4,...
Daniel Friesen [Sun, 6 Nov 2011 22:50:32 +0000 (22:50 +0000)]
Commit maintenance/dev/ a set of bash scripts that can quickly download php 5.4, install it in an isolated area, install a quick development copy of MediaWiki, and then start up a local webserver.

12 years agore r102027: split up long lines
Mark A. Hershberger [Sun, 6 Nov 2011 21:31:52 +0000 (21:31 +0000)]
re r102027: split up long lines

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 6 Nov 2011 20:51:20 +0000 (20:51 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoUse WikiPage instead of Article to call updateCategoryCounts()
Alexandre Emsenhuber [Sun, 6 Nov 2011 20:39:20 +0000 (20:39 +0000)]
Use WikiPage instead of Article to call updateCategoryCounts()

12 years ago* Only show "view" tabs when the user hasn't the permission to read the page and...
Alexandre Emsenhuber [Sun, 6 Nov 2011 20:30:08 +0000 (20:30 +0000)]
* Only show "view" tabs when the user hasn't the permission to read the page and put the whole stuff in a $userCanRead check instead of doing that for each check
* Factorise duplicate code (for the "protect" tab generation)
* Use Title::quickUserCan() check for delete and protect actions instead of User::isAllowed()
* Pass the User object to Title::quickUserCan()

12 years ago* Merged Title::userCanRead() check in Title::getUserPermissionsErrors()
Alexandre Emsenhuber [Sun, 6 Nov 2011 19:59:46 +0000 (19:59 +0000)]
* Merged Title::userCanRead() check in Title::getUserPermissionsErrors()
* (bug 26020) Setting $wgEmailConfirmToEdit to true no longer removes diffs from recent changes feeds
* Added second parameter to Title::userCan() and Title::quickUserCan() to allow callers to pass the User object to use for checks; this changes Title::userCan()'s second parameter from "do expensive queries" flag to User, but all callers should have been updated in r102183
* Updated callers that might throw a PermissionsError to use getUserPermissionsErrors() instead and pass the error array to the exception
* Refactored duplicate code in missingPermissionError()
* Moved Title::isNamespaceProtected() a bit upper and Title::userCanRead() near Title::userCan() to have related functions in the same location
* Some minor refactoring in permission-related functions in Title

12 years agoBug 26375 - Italics should be passed to TOC
Platonides [Sun, 6 Nov 2011 15:07:34 +0000 (15:07 +0000)]
Bug 26375 - Italics should be passed to TOC
http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=403630551#Italics_in_ToC

12 years agoDidn't we agree to use @since?
Niklas Laxström [Sun, 6 Nov 2011 12:15:28 +0000 (12:15 +0000)]
Didn't we agree to use @since?

12 years ago* Moved the language variant check inside the "not a special page" check instead...
Alexandre Emsenhuber [Sun, 6 Nov 2011 05:51:38 +0000 (05:51 +0000)]
* Moved the language variant check inside the "not a special page" check instead of doing it again after
* Moved the definition of the $session variable near where it's used

12 years agoFixed doc typo
Aaron Schulz [Sun, 6 Nov 2011 05:43:03 +0000 (05:43 +0000)]
Fixed doc typo

12 years agoMake the CliInstaller use --server to set wgServer instead of always setting it to...
Daniel Friesen [Sun, 6 Nov 2011 01:15:25 +0000 (01:15 +0000)]
Make the CliInstaller use --server to set wgServer instead of always setting it to "localhost"

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Sat, 5 Nov 2011 21:06:33 +0000 (21:06 +0000)]
* Use local context to get messages
* Escape messages that were passed raw to the output

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 5 Nov 2011 21:03:17 +0000 (21:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Only call Title::getPageLanguage() when necessary, i.e. after "!$wgDisableLangConve...
Alexandre Emsenhuber [Sat, 5 Nov 2011 20:25:00 +0000 (20:25 +0000)]
* Only call Title::getPageLanguage() when necessary, i.e. after "!$wgDisableLangConversion && $wgCanonicalLanguageLinks" check passed
* Removed creation of Special:Recentchanges' Title object and use Title::isSpecial() instead

12 years ago* Made OuputPage::showPermissionsErrorPage() show a different messages for 'read...
Alexandre Emsenhuber [Sat, 5 Nov 2011 19:51:05 +0000 (19:51 +0000)]
* Made OuputPage::showPermissionsErrorPage() show a different messages for 'read', 'edit', 'create' and 'upload' actions to saying "You need to log in to do this action" when 1) The user is not logged in 2) The only error is a permissions error (no block or something else) and 3) The error can simply be avoided by logging in
* This replaces OuputPage::loginToUse() functionnality, made it simply throw a PermissionsEror exception and updated all calls in core
* Same for the check in SpecialUpload::execute(), EditPage::userNotLoggedInPage() and EditPage::noCreatePermission()
* Throw the same exception in EditPage::attemptSave() whether the user is logged in or not and let OuputPage::showPermissionsErrorPage() decide which message to display
* Replaced call to deprecated OutputPage::blockedPage() in SpecialUpload
* Displayed messages are the same as now, except the title is always "loginreqtitle"
* 'nocreatetitle' and 'uploadnologin' messages are still used by extensions, so I kept them, but the message 'whitelistedittitle' is not used anymore and has been removed

12 years ago* Use WikiPage instead of Article for doPurge(), getting raw wikitext and ParserCache...
Alexandre Emsenhuber [Sat, 5 Nov 2011 19:17:15 +0000 (19:17 +0000)]
* Use WikiPage instead of Article for doPurge(), getting raw wikitext and ParserCache access
* Use ParserOptions::newFromContext()

12 years ago* fixing Special:ListBots which behaved like Special:ListAdmins
Danny B [Sat, 5 Nov 2011 16:35:24 +0000 (16:35 +0000)]
* fixing Special:ListBots which behaved like Special:ListAdmins

12 years agoFollowup r100126, per brion remove htmlspecialchars() call
Sam Reed [Sat, 5 Nov 2011 14:22:58 +0000 (14:22 +0000)]
Followup r100126, per brion remove htmlspecialchars() call

Swap back a code line to use $text

Swap some space indents to tabs

12 years agoFollowup r101241, after removing @private set private modifier as they are indeed...
Sam Reed [Sat, 5 Nov 2011 14:20:00 +0000 (14:20 +0000)]
Followup r101241, after removing @private set private modifier as they are indeed private...

12 years agoPartial revert to r101244 due to next() weirdness
Sam Reed [Sat, 5 Nov 2011 14:10:50 +0000 (14:10 +0000)]
Partial revert to r101244 due to next() weirdness

12 years agoAdded title type hint to invalidateImageRedirect here too
Aaron Schulz [Sat, 5 Nov 2011 09:19:35 +0000 (09:19 +0000)]
Added title type hint to invalidateImageRedirect here too

12 years ago* Added File::normalizeTitle() function and used it to consolidate file title validit...
Aaron Schulz [Fri, 4 Nov 2011 23:49:03 +0000 (23:49 +0000)]
* Added File::normalizeTitle() function and used it to consolidate file title validity checks and sanitation. (bug 32195)
* Broke a few long lines.

12 years ago* Added some Title type hinting
Aaron Schulz [Fri, 4 Nov 2011 23:33:53 +0000 (23:33 +0000)]
* Added some Title type hinting
* Used 'self' in some class construction instances

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 4 Nov 2011 22:41:52 +0000 (22:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoWindows compat for a couple of tests :(
Max Semenik [Fri, 4 Nov 2011 20:46:04 +0000 (20:46 +0000)]
Windows compat for a couple of tests :(

12 years agoApply for Bug #31694 -- "During installation, tabbing order (cursor focus) goes to...
Mark A. Hershberger [Fri, 4 Nov 2011 18:47:14 +0000 (18:47 +0000)]
Apply for Bug #31694 -- "During installation, tabbing order (cursor focus) goes to logo instead of 'continue'"
Patch From: Grunny

12 years agoApply patch from Bug #12262 -- "Indents and lists don't align"
Mark A. Hershberger [Fri, 4 Nov 2011 18:39:30 +0000 (18:39 +0000)]
Apply patch from Bug #12262 -- "Indents and lists don't align"

12 years agoSome cleanup to EditPage:
Alexandre Emsenhuber [Fri, 4 Nov 2011 18:35:25 +0000 (18:35 +0000)]
Some cleanup to EditPage:
* Added displayPermissionsError() to show the permissions error page with the content if there's content to show or it will throw an normal exception if there's nothing to display; this restores a functionnality lost at some point and added new message 'viewyourtext' that is displayed when the user made changes to the content (e.g. when the block happens while the user is editing the page)
* Marked EditPage::readOnlyPage() as deprecated since displayPermissionsError() is now used. This also means that OutputPage::readOnlyPage() is no longer used to display such error pages (but still have to keep that functionnality since it's used by extensions, same for EditPage::readOnlyPage(), *sigh*)
* Removed blockedPage()'s display of content since it's nearly never called (a blocked user would trigger the path mentionned above, not the check in internalAttemptSave()) and also removed 'blockedoriginalsource' and 'blockededitsource' messages that are no longer used
* Use OutputPage::prepareErrorPage() to prepare error pages instead of doing all that stuff directly
* Moved noCreatePermission() near other error-related functions
* Throw an exception directly in attemptSave() instead of calling deprecated methods and marked noCreatePermission() and blockedPage() as deprecated

12 years agoAnd while I'm at it, move token check to onView() so that if action=markpatrolled...
Alexandre Emsenhuber [Fri, 4 Nov 2011 16:40:00 +0000 (16:40 +0000)]
And while I'm at it, move token check to onView() so that if action=markpatrolled is called without parameters, the user will see 'markedaspatrollederror' error and not 'sessionfailure'

12 years agoUpdated docs for r101896
Aaron Schulz [Fri, 4 Nov 2011 15:05:00 +0000 (15:05 +0000)]
Updated docs for r101896

12 years agoFixes Bug #31722 — “ugly old toolbar icons - height inconsistent” —
Mark A. Hershberger [Fri, 4 Nov 2011 13:21:32 +0000 (13:21 +0000)]
Fixes Bug #31722 — “ugly old toolbar icons - height inconsistent” —
patch from diebuche.

12 years agoeol w/s
Mark A. Hershberger [Fri, 4 Nov 2011 13:08:44 +0000 (13:08 +0000)]
eol w/s

12 years agoFix history versions
Sam Reed [Fri, 4 Nov 2011 11:53:22 +0000 (11:53 +0000)]
Fix history versions

12 years ago1.17 -> 1.18
Sam Reed [Fri, 4 Nov 2011 11:51:06 +0000 (11:51 +0000)]
1.17 -> 1.18

12 years ago* fixed ipblocks.ipb_by_text field, removed default blank not null (fixed install...
Jure Kajzer [Fri, 4 Nov 2011 11:35:10 +0000 (11:35 +0000)]
* fixed ipblocks.ipb_by_text field, removed default blank not null (fixed install&update)
* fixed Block->insert; ipblocks.ipb_id is autoincrement field (should use sequences for compatibility)

12 years agoUse WikiPage instead of Article to call the hasViewableContent() method
Alexandre Emsenhuber [Fri, 4 Nov 2011 08:58:10 +0000 (08:58 +0000)]
Use WikiPage instead of Article to call the hasViewableContent() method

12 years ago* fixed a typo in oracle/tables.sql
Jure Kajzer [Fri, 4 Nov 2011 07:17:13 +0000 (07:17 +0000)]
* fixed a typo in oracle/tables.sql
* readded the sha1 fields (installer & upgrader)

12 years agoPer Platonides, fix for r101630: correct class name
Alexandre Emsenhuber [Fri, 4 Nov 2011 06:59:36 +0000 (06:59 +0000)]
Per Platonides, fix for r101630: correct class name

12 years agoRemoved debug code from r101944
Aaron Schulz [Fri, 4 Nov 2011 01:56:51 +0000 (01:56 +0000)]
Removed debug code from r101944

12 years agoPartial revert of r101912 -- restores r99315 'includexmlnamespace' parameter for...
Brion Vibber [Fri, 4 Nov 2011 01:31:15 +0000 (01:31 +0000)]
Partial revert of r101912 -- restores r99315 'includexmlnamespace' parameter for API, but keeps the logic to keep that from clobbering alternate XML output formats with their own namespaces.

12 years agoalpha -> beta
Sam Reed [Fri, 4 Nov 2011 01:28:52 +0000 (01:28 +0000)]
alpha -> beta

Merge RELEASE-NOTES changes

12 years agoDocumentation
Sam Reed [Fri, 4 Nov 2011 01:00:06 +0000 (01:00 +0000)]
Documentation

Fix mime-type on image

12 years agoResync 1.18 RELEASE-NOTES files
Sam Reed [Fri, 4 Nov 2011 00:59:11 +0000 (00:59 +0000)]
Resync 1.18 RELEASE-NOTES files

12 years agoAdd Central Dusun language code to RELEASE-NOTES-1.18
Sam Reed [Fri, 4 Nov 2011 00:32:45 +0000 (00:32 +0000)]
Add Central Dusun language code to RELEASE-NOTES-1.18

12 years ago* (bug 31878, bug 31542) Fix XML namespace output in API; removed now-unneeded includ...
Brion Vibber [Thu, 3 Nov 2011 23:14:58 +0000 (23:14 +0000)]
* (bug 31878, bug 31542) Fix XML namespace output in API; removed now-unneeded includexmlnamespace parameter.

Any existing uses of includexmlnamespace should be ignored and harmless.

If output data already includes a specific default namespace as an xmlns attribute, it is now retained -- so for example the RSD API discovery module outputs the appropriate namespace instead of the generic API one.

Partial revert of r99135 which added the includexmlnamespace parameter as a temporary requirement to get the xmlns attribute included.

Followup to r88007 which added the xmlns originally, but in the wrong order so it overrode existing output data.

12 years agoFollow-up r101808. Use canonical class name.
Platonides [Thu, 3 Nov 2011 22:58:16 +0000 (22:58 +0000)]
Follow-up r101808. Use canonical class name.

12 years agoFU r96015: removed & in MakeGlobalVariablesScript hook
Aaron Schulz [Thu, 3 Nov 2011 22:21:19 +0000 (22:21 +0000)]
FU r96015: removed & in MakeGlobalVariablesScript hook

12 years agoeol w/s
Mark A. Hershberger [Thu, 3 Nov 2011 21:22:34 +0000 (21:22 +0000)]
eol w/s

12 years agoBug 28172 - wfGetDB called when it shouldn't be
OverlordQ [Thu, 3 Nov 2011 21:00:14 +0000 (21:00 +0000)]
Bug 28172 - wfGetDB called when it shouldn't be

12 years agoFix fixme on r101177
Sam Reed [Thu, 3 Nov 2011 20:55:57 +0000 (20:55 +0000)]
Fix fixme on r101177

12 years agoWhoops, need a !
Chad Horohoe [Thu, 3 Nov 2011 20:17:49 +0000 (20:17 +0000)]
Whoops, need a !

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 3 Nov 2011 20:16:37 +0000 (20:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago*grumble grumble* know it alls think I'm abusing $wgMiserMode. So fine, have a SHINY...
Chad Horohoe [Thu, 3 Nov 2011 20:15:27 +0000 (20:15 +0000)]
*grumble grumble* know it alls think I'm abusing $wgMiserMode. So fine, have a SHINY NEW GLOBAL INSTEAD. bug 32072, r92109, yada-yada.

This is not a "useless" error message, regardless of what the bug claims.

12 years agoFix for r101858: forgot the override those methods
Alexandre Emsenhuber [Thu, 3 Nov 2011 19:25:30 +0000 (19:25 +0000)]
Fix for r101858: forgot the override those methods

12 years agobug 32183: remove the client-* classes added from user-agent-sniffing onto the <html...
Brion Vibber [Thu, 3 Nov 2011 19:18:49 +0000 (19:18 +0000)]
bug 32183: remove the client-* classes added from user-agent-sniffing onto the <html> element.

Browser sniffing is bad, and having these here encourages unpleasantness.
Keeping the js/nojs ones as those are useful and non-evil (they're an example of feature detection, exposed via CSS here rather than through JS.)

12 years agoFollow-up r101858: forgot to commit AutoLoader.php
Alexandre Emsenhuber [Thu, 3 Nov 2011 19:16:09 +0000 (19:16 +0000)]
Follow-up r101858: forgot to commit AutoLoader.php

12 years agoPer Aaron, fix for r89405: introduced DerivativeRequest to allow to override the...
Alexandre Emsenhuber [Thu, 3 Nov 2011 19:14:46 +0000 (19:14 +0000)]
Per Aaron, fix for r89405: introduced DerivativeRequest to allow to override the request parameters, but not headers, cookies and session. Updated ApiEditPage (for the bug) and ApiLogin (for future use)

12 years agoAdd to jquery.client's qunit tests by actually testing the test() function against...
Brion Vibber [Thu, 3 Nov 2011 18:33:11 +0000 (18:33 +0000)]
Add to jquery.client's qunit tests by actually testing the test() function against the sample user-agents.

Also changed from hardcoded constant of how many user-agents to test to counting them so it won't get out of sync.

Added Firefox 10 and IE 10 sample user-agent strings in to make sure they test correctly.
They *do* test correctly *if and only if* you use raw numbers for a major-version test (eg > 7). If you tried > "7.0" you would find it fails on the version 10 browsers.

12 years agoFollowup r101834 - this time tested
Niklas Laxström [Thu, 3 Nov 2011 17:09:29 +0000 (17:09 +0000)]
Followup r101834 - this time tested

12 years agoQuick ugly fix to avoid duplicate log entries in rc feed.
Niklas Laxström [Thu, 3 Nov 2011 17:07:29 +0000 (17:07 +0000)]
Quick ugly fix to avoid duplicate log entries in rc feed.
I didn't think that save() would send lines, since there was function to do that (added in r45725 - duplicating existing code).
This part of codebase could use much TLC

12 years agolet us force thumb rendering even if previous file exist
Antoine Musso [Thu, 3 Nov 2011 17:06:44 +0000 (17:06 +0000)]
let us force thumb rendering even if previous file exist

The new FORCE_RENDER flag should always be used with FORCE_NOW. It let us
override the file_exist() check and thus trigger a thumb rendering even if
the file exist.

Will be needed by the vipscaler extension.

12 years agow/s fixup
Mark A. Hershberger [Thu, 3 Nov 2011 16:47:42 +0000 (16:47 +0000)]
w/s fixup

12 years agoadd \n to a wfDebug() call
Antoine Musso [Thu, 3 Nov 2011 16:18:48 +0000 (16:18 +0000)]
add \n to a wfDebug() call

follow up r48417

12 years agotypo
Mark A. Hershberger [Thu, 3 Nov 2011 15:14:02 +0000 (15:14 +0000)]
typo

12 years agocomment that isValidURI must reject file:// URI
Antoine Musso [Thu, 3 Nov 2011 15:06:52 +0000 (15:06 +0000)]
comment that isValidURI must reject file:// URI

12 years agouse isValidURI for redirect check
Mark A. Hershberger [Thu, 3 Nov 2011 14:04:01 +0000 (14:04 +0000)]
use isValidURI for redirect check

12 years agoman page help pages generation
Antoine Musso [Thu, 3 Nov 2011 14:01:00 +0000 (14:01 +0000)]
man page help pages generation

Tweaked mwdocgen.php to let us generates man pages. They will be saved to
./docs/man so make sure to update your MANPATH if you use this feature.

Usage:

 php mwdocgen.php --all --generate-man
or
 make man

12 years agoeol w/s
Mark A. Hershberger [Thu, 3 Nov 2011 13:58:29 +0000 (13:58 +0000)]
eol w/s

12 years agofollowup r101490, remove extra tabs after talking to Nikerabbit.
Mark A. Hershberger [Thu, 3 Nov 2011 13:57:25 +0000 (13:57 +0000)]
followup r101490, remove extra tabs after talking to Nikerabbit.

12 years ago(bug 31944). As a work around for bug 31944, don't extract tiff:YCbCrSubSampling...
Brian Wolff [Thu, 3 Nov 2011 13:10:14 +0000 (13:10 +0000)]
(bug 31944). As a work around for bug 31944, don't extract tiff:YCbCrSubSampling from XMP.

Several files have wrong type for that property, XMPReader currently marks entire file as invalid instead of just specific property, if there is a type mismatch in XMP data.

12 years ago* Set constant default values in class definition and not constructor
Alexandre Emsenhuber [Thu, 3 Nov 2011 09:21:45 +0000 (09:21 +0000)]
* Set constant default values in class definition and not constructor
* Added getTitle()
* Mark constructor and getArticle() as public
* Removed a PHP4-ism in constructor

12 years agoCleanup to deletion related code:
Alexandre Emsenhuber [Thu, 3 Nov 2011 08:55:04 +0000 (08:55 +0000)]
Cleanup to deletion related code:
* Use the new 'cannotdelete-title' message for the title on error instead of "internal error"
* Don't use OutputPage::showFatalError() but add the content by "normal" methods (related to the item above)
* Don't use the $DeleteReason and $DeleteReasonList member variables in Article and FileDeleteForm but local variables since they are not used anywhere else
* Moved down some variable definitions near where they are used so that they are only set when they will actually be used
* Same for the setPageTitle() call with 'delete-confirm' message in Article::delete() that is now in Article::confirmDelete()
* Added missing "true" as fourth parameter of WikiPage::doDeleteArticle() call that was missing
* Factorised getTitle() and getUser() calls
* Salt token with array( 'delete', 'page title' )

12 years ago* Use WikiPage instead of Article and call doDeleteArticle() with a custom error...
Alexandre Emsenhuber [Thu, 3 Nov 2011 08:16:15 +0000 (08:16 +0000)]
* Use WikiPage instead of Article and call doDeleteArticle() with a custom error message instead of calling doDelete()
* Call Title::getUserPermissionsErrors() instead of User::isAllowed() to know whether the user can delete the page

12 years agoTypofix in comment
Chad Horohoe [Thu, 3 Nov 2011 03:30:27 +0000 (03:30 +0000)]
Typofix in comment

12 years agoAddress fixme on r101606, should also call from $this
Chad Horohoe [Thu, 3 Nov 2011 00:41:12 +0000 (00:41 +0000)]
Address fixme on r101606, should also call from $this

12 years agoMake use of Title::isSpecialPage() in various places
Aaron Schulz [Wed, 2 Nov 2011 20:55:08 +0000 (20:55 +0000)]
Make use of Title::isSpecialPage() in various places

12 years agoPer comments on r99911 move $wgMaxImageArea check back to normaliseParams(). Added...
Bryan Tong Minh [Wed, 2 Nov 2011 20:48:50 +0000 (20:48 +0000)]
Per comments on r99911 move $wgMaxImageArea check back to normaliseParams(). Added hook BitmapHandlerCheckImageArea to override the area check. I'm not very happy with this overly specific hook, but I don't see a clear way to obtain the functionallity required otherwise.

Remove the width and height params from BitmapHandler::getImageArea(). There is really no reason for them to be there.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 2 Nov 2011 20:45:29 +0000 (20:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoEarly return if the page exists and redlink parameter was provided instead of going...
Alexandre Emsenhuber [Wed, 2 Nov 2011 20:18:43 +0000 (20:18 +0000)]
Early return if the page exists and redlink parameter was provided instead of going through all the normal process and then redirect; also moved a part of outside the "else" condition for consistency with the code below

12 years agoavoid E_STRICT warnings when no --installdbpass is given
Mark A. Hershberger [Wed, 2 Nov 2011 20:15:28 +0000 (20:15 +0000)]
avoid E_STRICT warnings when no --installdbpass is given

12 years ago* Let HTMLFileCache constructor take in a Title *or* a the prefixed dbkey itself.
Aaron Schulz [Wed, 2 Nov 2011 20:01:22 +0000 (20:01 +0000)]
* Let HTMLFileCache constructor take in a Title *or* a the prefixed dbkey itself.
* Tweaked filecache fallback in fileCachedPage() to try the raw title param. If the DB is down, we can get most views of titles with colons in them to work this way. Previously, it could fail on an interwiki lookup.

12 years ago* (bug 32126) Fix 1.18 regression in watchlist editor when items already removed...
Brion Vibber [Wed, 2 Nov 2011 19:36:49 +0000 (19:36 +0000)]
* (bug 32126) Fix 1.18 regression in watchlist editor when items already removed from watchlist

Overriding validation in HTMLForm bits so the extras can be safely ignored.

12 years agoAlias NS_MEDIA page views to NS_FILE. Fixes bug 32032.
Aaron Schulz [Wed, 2 Nov 2011 18:47:04 +0000 (18:47 +0000)]
Alias NS_MEDIA page views to NS_FILE. Fixes bug 32032.

12 years ago(bug 31822) Error during upgrade due to output buffer reset in stdout.
Chad Horohoe [Wed, 2 Nov 2011 18:03:46 +0000 (18:03 +0000)]
(bug 31822) Error during upgrade due to output buffer reset in stdout.

In various places in Maintenance, we're overwriting our output buffer rather than appending to it. This doesn't matter too much in the CLI, but it can corrupt headers when upgrading from the web. Thanks Woozle for pointing this out.

12 years agoFU r101629, made Pager only call doBatchLookups() if there are rows
Aaron Schulz [Wed, 2 Nov 2011 17:33:00 +0000 (17:33 +0000)]
FU r101629, made Pager only call doBatchLookups() if there are rows

12 years ago* Use WikiPage instance of Article
Alexandre Emsenhuber [Wed, 2 Nov 2011 16:36:20 +0000 (16:36 +0000)]
* Use WikiPage instance of Article
* Changed to call to directly create a Revision instead of going through WikiPage or Article

12 years ago* Made PermissionsError exception accept an optional second parameter for the descrip...
Alexandre Emsenhuber [Wed, 2 Nov 2011 15:30:55 +0000 (15:30 +0000)]
* Made PermissionsError exception accept an optional second parameter for the description of the errors (as returned by Title::getUserPermissionsErrors())
* PermissionsError now calls OutputPage::showPermissionsErrorPage() to display the error (this is needed to make the item above work correctly)
* Removed the override of the HTML title in OutputPage::showPermissionsErrorPage() so that it shows "Permission errors - Sitename" instead of simply "Permission errors" for consistency with the other things
* Pass the error array returned by Title::getUserPermissionsErrors() to PermissionsError where available
* Converted direct calls to OutputPage::showPermissionsErrorPage() to throw an PermissionsError error instead
* Added 'action-rollback' message that will be displayed when accessing action=rollback without sufficient rights
* Changed getRestriction() in subclasses of Action to return null when they previously returned 'read' so that user rights can be check with Title::getUserPermissionsErrors()
* Reordered checks to do first user rights, then block (if needed) and finally read only (also if needed) so that users don't think the error is temporary when they both don't have right and the database is locked