lhc/web/wiklou.git
12 years ago(bug 32358) Do not display "No higher resolution available" if the file doesn't have...
Brian Wolff [Fri, 11 Nov 2011 15:59:40 +0000 (15:59 +0000)]
(bug 32358) Do not display "No higher resolution available" if the file doesn't have dimensions (like an audio file)

12 years agoReordered some functions for more consistency: setOldSubtitle() near other view-relat...
Alexandre Emsenhuber [Fri, 11 Nov 2011 15:58:17 +0000 (15:58 +0000)]
Reordered some functions for more consistency: setOldSubtitle() near other view-related functions and deprecated functions to the bottom

12 years agoFollow-up r102751 - I think this test was intermitently failing because it was re...
Brian Wolff [Fri, 11 Nov 2011 15:33:37 +0000 (15:33 +0000)]
Follow-up r102751 - I think this test was intermitently failing because it was re-using thumbs generated for previous tests. Add a random number to stop that.

12 years ago* applyed the patch from bug 26393 (please comment on the bug page)
Jure Kajzer [Fri, 11 Nov 2011 14:28:44 +0000 (14:28 +0000)]
* applyed the patch from bug 26393 (please comment on the bug page)

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 13:20:56 +0000 (13:20 +0000)]
Localisation updates from translatewiki.net.

12 years agoRemove trailing newline in 'config-db-host-help'.
Siebrand Mazeland [Fri, 11 Nov 2011 12:25:58 +0000 (12:25 +0000)]
Remove trailing newline in 'config-db-host-help'.

12 years agoLocalisation updates. Add Canadian English, by popular demand.
Siebrand Mazeland [Fri, 11 Nov 2011 12:24:29 +0000 (12:24 +0000)]
Localisation updates. Add Canadian English, by popular demand.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 11:05:12 +0000 (11:05 +0000)]
Localisation updates from translatewiki.net.

Protocol relative URL updates in mainpagedocfooter translations (updated with bot) following up r102767.

12 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 11 Nov 2011 10:43:32 +0000 (10:43 +0000)]
Localisation updates from translatewiki.net.

Mostly protocol relative URL updates in translations (updated with bot) following up r102767, r102749.

12 years agoFollow-up 102749: more protocol relative URLs.
Siebrand Mazeland [Fri, 11 Nov 2011 10:39:30 +0000 (10:39 +0000)]
Follow-up 102749: more protocol relative URLs.

12 years ago(follow-up r99910) Make $wgEnableAutoRotation work...
Brian Wolff [Fri, 11 Nov 2011 04:09:05 +0000 (04:09 +0000)]
(follow-up r99910) Make $wgEnableAutoRotation work...

Also unit-tests. There's a bit of duplication in the unit tests, and I wasn't sure if there was a better way with less duplication.

12 years agoUpdate xcache url since the old url redirects to the lighttpd redmine homepage instea...
Daniel Friesen [Fri, 11 Nov 2011 03:40:13 +0000 (03:40 +0000)]
Update xcache url since the old url redirects to the lighttpd redmine homepage instead of anything related to xcache.

12 years agoUpdate Installer i18n to use some protocol relative urls.
Daniel Friesen [Fri, 11 Nov 2011 03:35:18 +0000 (03:35 +0000)]
Update Installer i18n to use some protocol relative urls.

12 years agoFollowup r102744 update parser tests.
Daniel Friesen [Fri, 11 Nov 2011 03:30:17 +0000 (03:30 +0000)]
Followup r102744 update parser tests.

12 years agoSwitch some urls inside en to protocol relative.
Daniel Friesen [Fri, 11 Nov 2011 03:20:45 +0000 (03:20 +0000)]
Switch some urls inside en to protocol relative.

12 years ago[Resources.php] Must. Have. Order.
Krinkle [Fri, 11 Nov 2011 00:17:38 +0000 (00:17 +0000)]
[Resources.php] Must. Have. Order.

12 years agoRELEASE-NOTES-1.19 for r102722
Sam Reed [Fri, 11 Nov 2011 00:13:27 +0000 (00:13 +0000)]
RELEASE-NOTES-1.19 for r102722

12 years ago* (bug 30062) Add $wgDBprefix option to cli installer
Sam Reed [Fri, 11 Nov 2011 00:05:04 +0000 (00:05 +0000)]
* (bug 30062) Add $wgDBprefix option to cli installer

Patch by Grunny

12 years agoFix file name and class case.
gicode [Thu, 10 Nov 2011 23:52:56 +0000 (23:52 +0000)]
Fix file name and class case.

Follow-up r102719

12 years agoAdd test to catch the problem fixed in r102595.
gicode [Thu, 10 Nov 2011 23:45:35 +0000 (23:45 +0000)]
Add test to catch the problem fixed in r102595.

Confirmed the test works by removing "Test" from one of the test file names.

12 years agoon tablesort, verify <caption> is the first child in the table
Antoine Musso [Thu, 10 Nov 2011 22:54:29 +0000 (22:54 +0000)]
on tablesort, verify <caption> is the first child in the table

r102303 tried to compare the whole table when bug 32047 only require
we have <caption> as a first child.  Easier definition leads to easier
code!

12 years agoAdded some revision table comments
Aaron Schulz [Thu, 10 Nov 2011 21:03:23 +0000 (21:03 +0000)]
Added some revision table comments

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

12 years agoDocumentation
Sam Reed [Thu, 10 Nov 2011 20:50:21 +0000 (20:50 +0000)]
Documentation

12 years ago* sry about that :S ... 10x Aaron
Jure Kajzer [Thu, 10 Nov 2011 20:50:01 +0000 (20:50 +0000)]
* sry about that :S ... 10x Aaron

12 years agoFix syntax error I introduced from r102683
Sam Reed [Thu, 10 Nov 2011 20:49:11 +0000 (20:49 +0000)]
Fix syntax error I introduced from r102683

12 years agoPass in some more , __METHOD__
Sam Reed [Thu, 10 Nov 2011 20:44:37 +0000 (20:44 +0000)]
Pass in some more , __METHOD__

12 years agoAdd $fname to tableExists
Sam Reed [Thu, 10 Nov 2011 20:39:23 +0000 (20:39 +0000)]
Add $fname to tableExists

Pass $fname/__METHOD__ in in upstream callers

12 years ago* fix as per comment on CR r102625#c25856
Jure Kajzer [Thu, 10 Nov 2011 19:49:32 +0000 (19:49 +0000)]
* fix as per comment on CR r102625#c25856

12 years agoRevert r102650, r102640. Caused breakage on translatewiki.net:
Siebrand Mazeland [Thu, 10 Nov 2011 19:01:41 +0000 (19:01 +0000)]
Revert r102650, r102640. Caused breakage on translatewiki.net:

No localisation cache found for English. Please run maintenance/rebuildLocalisationCache.php.

Backtrace:

#0 /www/w/includes/LocalisationCache.php(288): LocalisationCache->initLanguage('en')
#1 /www/w/includes/LocalisationCache.php(223): LocalisationCache->loadItem('en', 'specialPageAlia...')
#2 /www/w/languages/Language.php(2630): LocalisationCache->getItem('en', 'specialPageAlia...')
#3 /www/w/includes/SpecialPageFactory.php(211): Language->getSpecialPageAliases()
#4 /www/w/includes/SpecialPageFactory.php(247): SpecialPageFactory::getAliasList()
#5 /www/w/includes/Title.php(4186): SpecialPageFactory::resolveAlias('LanguageStats/n...')
#6 /www/w/includes/Wiki.php(154): Title->isSpecial('Badtitle')
#7 /www/w/includes/Wiki.php(605): MediaWiki->performRequest()
#8 /www/w/includes/Wiki.php(524): MediaWiki->main()
#9 /www/w/index.php(58): MediaWiki->run()
#10 {main}

12 years agoFollow-up r102587. Add details to comments and add a couple more tests.
gicode [Thu, 10 Nov 2011 18:02:38 +0000 (18:02 +0000)]
Follow-up r102587.  Add details to comments and add a couple more tests.

12 years agoMinor tweaks to r102595: remove echo that clutters output, etc
Chad Horohoe [Thu, 10 Nov 2011 15:20:01 +0000 (15:20 +0000)]
Minor tweaks to r102595: remove echo that clutters output, etc

12 years agoUse WikiPage instead of Article to call getRedirectTarget()
Alexandre Emsenhuber [Thu, 10 Nov 2011 14:31:19 +0000 (14:31 +0000)]
Use WikiPage instead of Article to call getRedirectTarget()

12 years agosome more oracle-phpunit-fu (should not affect non-oracle)
Jure Kajzer [Thu, 10 Nov 2011 13:29:32 +0000 (13:29 +0000)]
some more oracle-phpunit-fu (should not affect non-oracle)
* CloneDatabase - already droping tables in internal function, removed duplicate action
* DatabaseOracle - stopped ignoring "temporary" parameter
* added two parameters to phpunit (use-normal-tables & reuse-db), default actions stay the same
* with reuse-db oracle phpunit test run on oracle down to 1m 20s ;)

12 years agocorrect variable name
Antoine Musso [Thu, 10 Nov 2011 13:14:52 +0000 (13:14 +0000)]
correct variable name

This is caused by r102640, I have moved some code to a new function
and forgot to rename the internal variable name to match the function
parameter.

12 years agoMade DifferenceEngine use a context instead of global variables and updaters calls...
Alexandre Emsenhuber [Thu, 10 Nov 2011 13:06:52 +0000 (13:06 +0000)]
Made DifferenceEngine use a context instead of global variables and updaters calls to constructor in core

12 years agoMade setupGlobals() return the created context and use it instead of either global...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:49:10 +0000 (12:49 +0000)]
Made setupGlobals() return the created context and use it instead of either global variables or recreating more instance of those classes

12 years agoRemoved FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are...
Alexandre Emsenhuber [Thu, 10 Nov 2011 12:09:33 +0000 (12:09 +0000)]
Removed FeedItem::getLastMod() and FeedItem::getDBPrefixedTitle() since they are not used and would throw an error since FeedItem::$Title is a string and not an object

12 years agomove store writing out of recache()
Antoine Musso [Thu, 10 Nov 2011 11:56:52 +0000 (11:56 +0000)]
move store writing out of recache()

Writing to cache is now handled in a new method. That makes recache() a bit
shorter and easier to read. Since there is no point in writing data to
/dev/null , return early in such a case (ie if store is LCStore_Null).

12 years agoload up includes/Setup.php before Maintenance::finalSetup()
Antoine Musso [Thu, 10 Nov 2011 11:18:50 +0000 (11:18 +0000)]
load up includes/Setup.php before Maintenance::finalSetup()

This let us get access to global functions and the autoloader when trying
to do some final setup for our maintenance scripts.

12 years agoFollow-up r102628, r102612: More protocol relative URLs.
Siebrand Mazeland [Thu, 10 Nov 2011 09:42:16 +0000 (09:42 +0000)]
Follow-up r102628, r102612: More protocol relative URLs.
Also contains localisation updates from //translatewiki.net :)

12 years ago* reverted changes to Block and ApiBlockTest made in r102625 ... PEBKAC
Jure Kajzer [Thu, 10 Nov 2011 09:36:18 +0000 (09:36 +0000)]
* reverted changes to Block and ApiBlockTest made in r102625 ... PEBKAC

12 years agoFollow-up r102612: Use protocol relative URLs for translatewiki.net also
Siebrand Mazeland [Thu, 10 Nov 2011 09:06:33 +0000 (09:06 +0000)]
Follow-up r102612: Use protocol relative URLs for translatewiki.net also

12 years ago* Added getInfinity to DatabaseOracle
Jure Kajzer [Thu, 10 Nov 2011 07:41:12 +0000 (07:41 +0000)]
* Added getInfinity to DatabaseOracle
* Block - replaced 'infinity' strings with DB->getInfinity calls
* UploadStash - added sequence value generation for ID

12 years agoAdd a new User::getDisplayName() to return the name that should be displayed in the...
Daniel Friesen [Thu, 10 Nov 2011 06:55:21 +0000 (06:55 +0000)]
Add a new User::getDisplayName() to return the name that should be displayed in the interface.
Add a UserDisplayName hook to allow extensions to give custom display names for users.
Add a $wgRealNameInInterface to use the real name of a user as the display name.
To start of the first use of the display name functionality tweak SkinTemplate to declare the userdisplayname and use it inside of personal_urls.

12 years agoRefactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalUR...
Daniel Friesen [Thu, 10 Nov 2011 03:27:55 +0000 (03:27 +0000)]
Refactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalURL and getFullURL.
This shouldn't cause any back or forward compat issues since php treats method names as case-insensitive. So this change shouldn't break any old extensions, and extensions are free to start using getLinkURL and won't have any issue breaking with old versions of MediaWiki.

12 years ago[mediawiki.Uri] Add overrideKeys option
Krinkle [Thu, 10 Nov 2011 02:08:47 +0000 (02:08 +0000)]
[mediawiki.Uri] Add overrideKeys option
* The behavior of turning foo=bar&foo=quux&lorem=ipsum into "{ lorem: 'ipsum', foo: ['bar', 'quux'] }", has annoyed me several times. As it is in contrary with the way PHP works (PHP only makes numeral arrays if the key ends in '[]'). Adding in an option to make mw.Uri behave like that.
* We may wanna make that the default at some point, leaving default behavior unchanged for now.
* Converted 'strictMode' into 'options', kept backwards compatibility
* Fixed documentation comment for example (q1=0 -> "{ q1: '0'")
* Updated unit tests to account for this option.

12 years agoThis SVN commit fixes bug32220 and makes links to mediawiki.org in language message...
Benny Situ [Thu, 10 Nov 2011 01:13:35 +0000 (01:13 +0000)]
This SVN commit fixes bug32220 and makes links to mediawiki.org in language message files protocol relative

12 years agoFollow-up r102521
Platonides [Wed, 9 Nov 2011 23:35:30 +0000 (23:35 +0000)]
Follow-up r102521
Remove $wgUseExternalEditor globals.

12 years agoMove tests that have likely never been executed. Now they will be executed.
gicode [Wed, 9 Nov 2011 23:11:52 +0000 (23:11 +0000)]
Move tests that have likely never been executed.  Now they will be executed.

It might be a good idea to have a commit hook or similar to catch these.

You can find candidates for renaming with this command:
$ find tests/phpunit/includes/ -name '*.php' | grep -Ev 'Test.php$' | xargs grep -l MediaWikiTestCase

12 years agoReverted r101244 changes - these are not equivalent and may have been causing the...
Aaron Schulz [Wed, 9 Nov 2011 22:59:09 +0000 (22:59 +0000)]
Reverted r101244 changes - these are not equivalent and may have been causing the assertion failures people (timo, myself) were getting.

12 years agoessage=fix trumped line of code from svn update
Rob Moen [Wed, 9 Nov 2011 22:53:45 +0000 (22:53 +0000)]
essage=fix trumped line of code from svn update

12 years agoAdd wfRemoveDotSegments and unit tests. This is a sane step towards fixing
gicode [Wed, 9 Nov 2011 22:44:12 +0000 (22:44 +0000)]
Add wfRemoveDotSegments and unit tests.  This is a sane step towards fixing
bug 32168.  This implements RFC3986 Section 5.2.4.
http://tools.ietf.org/html/rfc3986#section-5.2.4

This is important because you need to remove dot segments in order to safely
compare URLs when limiting URLs to a particular path.

12 years agoFixed misleading getItem() comments...things like arrays or FileDependency objects...
Aaron Schulz [Wed, 9 Nov 2011 22:35:31 +0000 (22:35 +0000)]
Fixed misleading getItem() comments...things like arrays or FileDependency objects and what not can be returned

12 years agoessage=This bug fixes bug30483
Rob Moen [Wed, 9 Nov 2011 22:08:38 +0000 (22:08 +0000)]
essage=This bug fixes bug30483

12 years agoCommit to fix bug 30513.
Diederik van Liere [Wed, 9 Nov 2011 21:15:48 +0000 (21:15 +0000)]
Commit to fix bug 30513.

12 years agoBug 31995 - Addition of PPFrame::getTitle
Sam Reed [Wed, 9 Nov 2011 20:52:24 +0000 (20:52 +0000)]
Bug 31995 - Addition of PPFrame::getTitle

Applied patch by Van de Bugger

Added documentation to go with

Added code to Preprocess_HipHop too

12 years agoUpdate RELEASE-NOTES-1.18 from branch
Sam Reed [Wed, 9 Nov 2011 20:40:22 +0000 (20:40 +0000)]
Update RELEASE-NOTES-1.18 from branch

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

12 years agoMove RELEASE-NOTES from r102416, after r102542
Sam Reed [Wed, 9 Nov 2011 17:34:52 +0000 (17:34 +0000)]
Move RELEASE-NOTES from r102416, after r102542

12 years ago(bug 32256) API list=search stops at first invalid result. Thanks to Lupo for finding...
Roan Kattouw [Wed, 9 Nov 2011 17:20:05 +0000 (17:20 +0000)]
(bug 32256) API list=search stops at first invalid result. Thanks to Lupo for finding the cause of the bug: in the code path for invalid titles, the iterator wasn't moved to the next result, so the loop kept processing the same result until it hit the limit.

12 years agomove bug 29912 RN form 1.19 to 1.18
Antoine Musso [Wed, 9 Nov 2011 17:14:53 +0000 (17:14 +0000)]
move bug 29912 RN form 1.19 to 1.18

This follow up a manual merge of r101002 in REL1_18 made by r102535

Bug fix is:
(bug 29912) Unit tests break if parsertest tables are still present

12 years agoDrop "selenium" user right. As far as I can tell, this isn't actually used anywhere...
Chad Horohoe [Wed, 9 Nov 2011 17:01:09 +0000 (17:01 +0000)]
Drop "selenium" user right. As far as I can tell, this isn't actually used anywhere (core or exts) and is leftover from the special page for selenium that was removed.

12 years agosplit getHooksFromDoc() function
Antoine Musso [Wed, 9 Nov 2011 16:15:35 +0000 (16:15 +0000)]
split getHooksFromDoc() function

if() { LOT OF CODE } else { LOT OF CODE } structures are hard to read
move the LOT OF CODE piece in its own function makes code easier to
understand.

12 years ago* phpunit fixes & optimizations for oracle backend
Jure Kajzer [Wed, 9 Nov 2011 15:50:24 +0000 (15:50 +0000)]
* phpunit fixes & optimizations for oracle backend

12 years agoSome updates to EditPage and ExternalEdit:
Alexandre Emsenhuber [Wed, 9 Nov 2011 15:31:55 +0000 (15:31 +0000)]
Some updates to EditPage and ExternalEdit:
* Made ExternalEdit use a context
* Updated DifferenceEngine to use ExternalEdit to send the diff stuff to reduce code duplication
* Introduced ExternalEdit::useExternalEngine() to check whether to use the external edit or diff (except for the action, section and oldid which are still checked in Wiki.php) to remove code duplication; external diff can now also be controlled with externaledit or internaledit URL parameters
* Use $wgContLang to get the name of the "Special" namespace instead of user's language
* Modified the line breaks in the comment on the top of the control file so that the URL is on its own line
* Updated extension to call EditPage::edit() instead of EditPage::submit(), the latter will just call the former
* Updated extension to let core handle itself the ExternalEdit mode instead of doing this themself

12 years agoUse WikiPage instead of Article
Alexandre Emsenhuber [Wed, 9 Nov 2011 11:39:52 +0000 (11:39 +0000)]
Use WikiPage instead of Article

12 years agoThrow a FatalError exception instead of calling OutputPage::showFatalError() (on...
Alexandre Emsenhuber [Wed, 9 Nov 2011 10:59:17 +0000 (10:59 +0000)]
Throw a FatalError exception instead of calling OutputPage::showFatalError() (on usage of $wgOut less)

12 years agoAllow \x1b (ascii ESC) in wfDebug() output
Antoine Musso [Wed, 9 Nov 2011 10:24:54 +0000 (10:24 +0000)]
Allow \x1b (ascii ESC) in wfDebug() output

It is a local hack I had to let me pass colored debug message using a local
wrapper:

function wfDebugGreen($msg) {
$color = "\x1b[1;32m"; # Green
$reset = "\x1b[1;0m";
wfDebug( $color . $msg . $reset );
}

Ideally \x1b should only be kept if it is followed by /(\d+(;\d)?)?+m/
which should match the 'graphic rendering' ANSI escape code.

12 years agoComments out console.log calls
Antoine Musso [Wed, 9 Nov 2011 09:01:34 +0000 (09:01 +0000)]
Comments out console.log calls

Catched by Schnark on CR of r102303

12 years agofix bug #29102: Upgrade fails "Unknown character set: 'mysql4'"
Mark A. Hershberger [Wed, 9 Nov 2011 03:25:15 +0000 (03:25 +0000)]
fix bug #29102: Upgrade fails "Unknown character set: 'mysql4'"

by replacing "mysql4" with "binary"

Trivial enough to be backported, I think.

12 years agoDelete LanguageSr_el.deps.php. LanguageSr_ec.php doesn't
Platonides [Tue, 8 Nov 2011 23:23:23 +0000 (23:23 +0000)]
Delete LanguageSr_el.deps.php. LanguageSr_ec.php doesn't
contain any base class used in LanguageSr_el. Not even in r13157.

12 years agoAdd name for code tly: Talysh ( http://en.wikipedia.org/wiki/Talysh_language ).
Platonides [Tue, 8 Nov 2011 23:01:30 +0000 (23:01 +0000)]
Add name for code tly: Talysh ( en.wikipedia.org/wiki/Talysh_language ).
There are translations in that language for the toolserver and
some extensions (AdminLinks, Babel, CategoryTree, Contest, GlobalUsage,
LanguageSelector, Todo, Translate and WikiData).

12 years agoMark as FIXME. This three calls leak a png filename in sys_get_temp_dir() each,
Platonides [Tue, 8 Nov 2011 22:27:25 +0000 (22:27 +0000)]
Mark as FIXME. This three calls leak a png filename in sys_get_temp_dir() each,
tempnam() like, not the two-words filenames of RandomImageGenerator::getRandomFilenames()
They aren't produced by ApiTestCaseUpload::fakeUploadFile() either.

12 years agoTest for bug 32057.
Platonides [Tue, 8 Nov 2011 21:55:05 +0000 (21:55 +0000)]
Test for bug 32057.
Latent bug in quite unused preprocessing path (expansion of heading nodes),
which was exposed by r101291 and fixed in r102440.
This test is used to exercise that code path.

12 years agoRevert r99307 and its friend r99309, improper use of !important per CR
Roan Kattouw [Tue, 8 Nov 2011 21:38:06 +0000 (21:38 +0000)]
Revert r99307 and its friend r99309, improper use of !important per CR

12 years agoAttempt to fix translatewiki bug 32057
Platonides [Tue, 8 Nov 2011 20:58:57 +0000 (20:58 +0000)]
Attempt to fix translatewiki bug 32057
The different Preprocessor::newChild expect false (with strict comparison) if there's no title passed to them.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 8 Nov 2011 20:32:28 +0000 (20:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix for r102417: commiting OutputPage.php is actually a good idea
Alexandre Emsenhuber [Tue, 8 Nov 2011 18:02:26 +0000 (18:02 +0000)]
Fix for r102417: commiting OutputPage.php is actually a good idea

12 years ago* Changed OutputPage's handling of subtitles to use an array and implode it with...
Alexandre Emsenhuber [Tue, 8 Nov 2011 18:01:22 +0000 (18:01 +0000)]
* Changed OutputPage's handling of subtitles to use an array and implode it with "<br />" so that callers don't have to bother whether there's already a subtitle when adding new ones
* Make OutputPage::setSubtitle(), OutputPage::addSubtitle() and OutputPage::appendSubtitle() accept a Message object in addition to a string
* Added new method OutputPage::addSubtitle() to replace appendSubtitle() and marked it as deprecated
* Clear the subtitles when showing an error page
* Always show the subtitle from Article::viewRedirect() when showing a page; left the parameter for use in EditPage
* Make Article::setOldSubtitle() add two subtitles and has to set "display:inline;" for the three possible divs to avoid too many spacing
* Removed the six different backlink subtitles and added one new message 'backlinksubtitle' to replace them and added OutputPage::addBacklinkSubtitle() to factorise common code
* Changed EditPage's view source to show "View source for <Page>" with the same backlink in subtitle for consistency with other back links and page titles

12 years agoBug 20148 - Change title of Special:Disambiguations
Antoine Musso [Tue, 8 Nov 2011 17:48:54 +0000 (17:48 +0000)]
Bug 20148 - Change title of Special:Disambiguations

Changing the english title to something more accurate.

12 years agoCast the return value of getExtraUserToggles() to an array in case it's not in the...
Roan Kattouw [Tue, 8 Nov 2011 17:20:54 +0000 (17:20 +0000)]
Cast the return value of getExtraUserToggles() to an array in case it's not in the dataCache

12 years agoFix fatal introduced in r97296. Seems to happen only after restarting memcached.
Roan Kattouw [Tue, 8 Nov 2011 17:16:07 +0000 (17:16 +0000)]
Fix fatal introduced in r97296. Seems to happen only after restarting memcached.

( ! ) Fatal error: Unsupported operand types in /srv/org/wikimedia/prototype/wikis/rl2/languages/Language.php on line 479
Call Stack
# Time Memory Function Location
1 0.0002 121976 {main}( ) ../index.php:0
2 0.0082 2959136 MediaWiki->run( ) ../index.php:58
3 0.0082 2959136 MediaWiki->main( ) ../Wiki.php:531
4 0.0082 2959136 MediaWiki->performRequest( ) ../Wiki.php:612
5 0.0165 5012424 MediaWiki->performAction( ) ../Wiki.php:252
6 0.0585 6947008 EditPage->submit( ) ../Wiki.php:506
7 0.0585 6947008 EditPage->edit( ) ../EditPage.php:360
8 0.1441 19979552 EditPage->showEditForm( ) ../EditPage.php:512
9 0.1704 22610032 EditPage->showStandardInputs( ) ../EditPage.php:1574
10 0.1778 22627752 Skin::makeInternalOrExternalUrl( ) ../EditPage.php:2046
11 0.1778 22627752 Skin::makeUrl( ) ../Skin.php:1006
12 0.1779 22627752 Skin::checkTitle( ) ../Skin.php:991
13 0.1780 22627752 Title::newFromText( ) ../Skin.php:1050
14 0.1780 22627752 Title->secureAndSplit( ) ../Title.php:148
15 0.1780 22627752 Language->getNsIndex( ) ../Title.php:2718
16 0.1781 22627752 Language->getNamespaceIds( ) ../Language.php:530
17 0.1782 22627752 Language->getNamespaceAliases( ) ../Language.php:505

12 years agotest SQL for our QueryPages objects
Antoine Musso [Tue, 8 Nov 2011 16:22:42 +0000 (16:22 +0000)]
test SQL for our QueryPages objects

Part of bug 32118: test special pages SQL queries against all supported DB

Still need to add all the other non QueryPage special pages and then setup
jenkins to support other databases.

12 years agoUse the local context instead of $wgOut, now that we have one
Alexandre Emsenhuber [Tue, 8 Nov 2011 16:06:59 +0000 (16:06 +0000)]
Use the local context instead of $wgOut, now that we have one

12 years ago* Use local context to get messages
Alexandre Emsenhuber [Tue, 8 Nov 2011 16:04:25 +0000 (16:04 +0000)]
* Use local context to get messages
* Changed three isset() to [!=]== null

12 years agocorrect typo in r102393
Antoine Musso [Tue, 8 Nov 2011 13:24:45 +0000 (13:24 +0000)]
correct typo in r102393

12 years agoadd quick comment from r102334 cr
Antoine Musso [Tue, 8 Nov 2011 12:07:45 +0000 (12:07 +0000)]
add quick comment from r102334 cr

12 years agoclean RN 1.19 of bugs merged in 1.18
Antoine Musso [Tue, 8 Nov 2011 10:54:14 +0000 (10:54 +0000)]
clean RN 1.19 of bugs merged in 1.18

bug 16428, bug 30684, bug 30907

12 years agoPrefix debug message in wfClientAcceptsGzip()
Antoine Musso [Tue, 8 Nov 2011 09:10:33 +0000 (09:10 +0000)]
Prefix debug message in wfClientAcceptsGzip()

12 years agoupdate ParserCache debug message
Antoine Musso [Tue, 8 Nov 2011 09:08:15 +0000 (09:08 +0000)]
update ParserCache debug message

"Found." was not very helpfull when indicating we found a cached
ParserOutput object.

12 years agoRemoved old, unused, MW_IMG_* constants
Aaron Schulz [Mon, 7 Nov 2011 23:24:56 +0000 (23:24 +0000)]
Removed old, unused, MW_IMG_* constants

12 years agoFollow-up r102334: odd that this minus sign (yes, copied from a diff) was actually...
Happy-melon [Mon, 7 Nov 2011 22:15:05 +0000 (22:15 +0000)]
Follow-up r102334: odd that this minus sign (yes, copied from a diff) was actually harmless.  Also explicitly define a variable that would otherwise be lazily initialised to zero but about which my IDE complains.

12 years ago(bug 31502) (follow-up r84718) Restore ToC to Special:EditWatchlist if there is more...
Happy-melon [Mon, 7 Nov 2011 22:11:04 +0000 (22:11 +0000)]
(bug 31502) (follow-up r84718) Restore ToC to Special:EditWatchlist if there is more than one namespace and more than 30 titles total (also resolves the commented TODO in the pre-r84718 code).

12 years agoFU r102073:
Aaron Schulz [Mon, 7 Nov 2011 21:54:19 +0000 (21:54 +0000)]
FU r102073:
* Added assertRepoDefined()/assertRepoTitle() functions to throw exceptions if a valid FileRepo or Title member is not set
* Fixed comment about UnregisteredLocalFile (it always sets a Title object)
* Note that $title in File constructor can be a string and that getTitle() can return false in docs

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 7 Nov 2011 20:46:13 +0000 (20:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* Use 'new self' instead of hard-coded class name
Aaron Schulz [Mon, 7 Nov 2011 20:22:57 +0000 (20:22 +0000)]
* Use 'new self' instead of hard-coded class name
* Added constructor comment

12 years ago* Added specific page header when showing "search deleted pages" form
Alexandre Emsenhuber [Mon, 7 Nov 2011 18:30:22 +0000 (18:30 +0000)]
* Added specific page header when showing "search deleted pages" form
* Throw an exception directly instead of calling OutputPage::permissionRequired()
* Removed unreachable code paths
* Show nicer error messages when undeletion could not be executed
* Pass the subpage parameter to loadRequest() and define $mTarget and $mTargetObj there

12 years agore Bug #29283, r101507: Apply Vitaliy Filippov's followup fix:
Mark A. Hershberger [Mon, 7 Nov 2011 17:50:54 +0000 (17:50 +0000)]
re Bug #29283, r101507: Apply Vitaliy Filippov's followup fix:

    .... I've found another bug with the implementation - it also
    relies on the presence of key '...:preload' and doesn't check it
    when checking for the expired cache, which can lead to "Invalid or
    missing localisation cache" exceptions.

12 years agotests for bug 32047 / r102301
Antoine Musso [Mon, 7 Nov 2011 17:48:42 +0000 (17:48 +0000)]
tests for bug 32047 / r102301

In table with class="sortable", thead is before caption