lhc/web/wiklou.git
13 years agoAdded to DefaultSettings
Priyanka Dhanda [Mon, 18 Oct 2010 18:20:19 +0000 (18:20 +0000)]
Added  to DefaultSettings

13 years agoFollow up to r74780. Set default for . did some sanity check around testSuiteNames...
Priyanka Dhanda [Mon, 18 Oct 2010 18:15:13 +0000 (18:15 +0000)]
Follow up to r74780. Set default for . did some sanity check around testSuiteNames. Some more code cleanup

13 years agoFollow up to r74780. Set default for .
Priyanka Dhanda [Mon, 18 Oct 2010 18:14:36 +0000 (18:14 +0000)]
Follow up to r74780. Set default for .

13 years agoDouble braces introduced in r74742 giving a fatal:
Platonides [Mon, 18 Oct 2010 17:42:14 +0000 (17:42 +0000)]
Double braces introduced in r74742 giving a fatal:
PHP Parse error:  syntax error, unexpected $end in ./maintenance/purgeOldText.inc on line 63

13 years agoFollow-up r74949: fix typo in UI message.
Siebrand Mazeland [Mon, 18 Oct 2010 17:29:32 +0000 (17:29 +0000)]
Follow-up r74949: fix typo in UI message.

13 years agoFollow-up r74949: Comment out a contentless message to avoid useless translation...
Raimond Spekking [Mon, 18 Oct 2010 16:41:13 +0000 (16:41 +0000)]
Follow-up r74949: Comment out a contentless message to avoid useless translation in Translatewiki
Re-enable this message when the help text is ready. Thanks.

13 years agoFixed ImageMagick detection on Windows
Max Semenik [Mon, 18 Oct 2010 16:21:31 +0000 (16:21 +0000)]
Fixed ImageMagick detection on Windows

13 years ago* Installer: works (beta). More testing tomorow.
Jure Kajzer [Mon, 18 Oct 2010 16:09:18 +0000 (16:09 +0000)]
* Installer: works (beta). More testing tomorow.
* Updater: todo. For now it skips.

13 years ago(bug 25535) Don't include empty JS/CSS messages at <Skinname.js>
Roan Kattouw [Mon, 18 Oct 2010 15:15:32 +0000 (15:15 +0000)]
(bug 25535) Don't include empty JS/CSS messages at <Skinname.js>

13 years agoPer r74946 CR, check whether realpath( $file ) returns false before using it
Roan Kattouw [Mon, 18 Oct 2010 15:11:48 +0000 (15:11 +0000)]
Per r74946 CR, check whether realpath( $file ) returns false before using it

13 years ago(bug 25546) Feed argument to finfo_file() through readpath() so it'll work on Windows
Roan Kattouw [Mon, 18 Oct 2010 14:59:42 +0000 (14:59 +0000)]
(bug 25546) Feed argument to finfo_file() through readpath() so it'll work on Windows

13 years agoRevert most of r72335:
Chad Horohoe [Mon, 18 Oct 2010 14:28:51 +0000 (14:28 +0000)]
Revert most of r72335:
* wfRunMaintenance() had scope issues (Maintenance::run() would have the same issues). Also per CR, it doesn't really reduce the amount of code that users are writing
* Example maintenance script doesn't belong here. There's already an example in docs/maintenance.txt, as well as docs on mw.org. Suggest expanding those instead.

13 years agoRevert r74810 (vary API help cache on $wgUser->isAnon()) and move the POST check...
Roan Kattouw [Mon, 18 Oct 2010 09:19:20 +0000 (09:19 +0000)]
Revert r74810 (vary API help cache on $wgUser->isAnon()) and move the POST check into the purge module. Also fix the permissions check in action=purge, which was totally broken and based on a misunderstanding of what the 'purge' right means.

13 years agoDid some testing to beef up the documentation a bit in memcached-client.php
Sean Colombo [Mon, 18 Oct 2010 06:12:55 +0000 (06:12 +0000)]
Did some testing to beef up the documentation a bit in memcached-client.php

13 years ago$wgUser is never a Stub since r70970.
Platonides [Sun, 17 Oct 2010 22:47:24 +0000 (22:47 +0000)]
$wgUser is never a Stub since r70970.

13 years ago$wgUser is never a Stub since r70970.
Platonides [Sun, 17 Oct 2010 22:33:25 +0000 (22:33 +0000)]
$wgUser is never a Stub since r70970.
This means, the user data was innecessarily loaded here just for the debug message.

It also caused bug 24995 - "fallback" key missing from localization cache.
For languages other than English (short-circuitted in Language.php:2800) during
Language load, it gets the fallback from the localization cache, which used the db,
which then loaded here the User object, which called WebRequest caused unstubbing (again)
of ContentLanguage for unicode normalization, which loaded again the Language (a call
to loadItem( 'xx', 'fallback' ) under loadItem( 'xx', 'fallback' ) stack) and then
caused it to finally fail.

It wasn't an unstub loop, but was near.

Backtrace:
LocalisationCache::loadItem  phase3/includes/LocalisationCache.php:205 <-- Second load of key fallback
LocalisationCache::getItem phase3/languages/Language.php:2802
Language::getFallbackFor phase3/languages/Language.php:169
Language::newFromCode phase3/languages/Language.php:140
Language::factory phase3/includes/StubObject.php:126
StubContLang::_newObject phase3/includes/StubObject.php:103
StubObject::_unstub phase3/includes/StubObject.php:57
StubObject::_call phase3/includes/StubObject.php:121
StubContLang::__call phase3/includes/WebRequest.php:204 <-- Second unstub
StubContLang::normalize phase3/includes/WebRequest.php:204
WebRequest::normalizeUnicode phase3/includes/WebRequest.php:231
WebRequest::getGPCVal phase3/includes/WebRequest.php:460
WebRequest::getCookie phase3/includes/User.php:835
User::loadFromSession phase3/includes/User.php:221
User::load phase3/includes/User.php:1501
User::getName phase3/includes/db/Database.php:658
DatabaseBase::query phase3/includes/db/DatabaseMysql.php:120
DatabaseMysql::open phase3/includes/db/Database.php:530
DatabaseBase::__construct phase3/includes/db/LoadBalancer.php:651
LoadBalancer::reallyOpenConnection phase3/includes/db/LoadBalancer.php:532
LoadBalancer::openConnection phase3/includes/db/LoadBalancer.php:455
LoadBalancer::getConnection phase3/includes/GlobalFunctions.php:3085
wfGetDB phase3/includes/LocalisationCache.php:772
LCStore_DB::get phase3/includes/LocalisationCache.php:326
LocalisationCache::isExpired phase3/includes/LocalisationCache.php:355
LocalisationCache::initLanguage phase3/includes/LocalisationCache.php:267
LocalisationCache::loadItem phase3/includes/LocalisationCache.php:205 <-- First load of key fallback
LocalisationCache::getItem phase3/languages/Language.php:2802
Language::getFallbackFor phase3/languages/Language.php:169
Language::newFromCode phase3/languages/Language.php:140
Language::factory phase3/includes/StubObject.php:126
StubContLang::_newObject phase3/includes/StubObject.php:103
StubObject::_unstub phase3/includes/StubObject.php:57
StubObject::_call phase3/includes/StubObject.php:121
StubContLang::__call phase3/includes/WebRequest.php:228 <-- First unstub
StubContLang::checkTitleEncoding phase3/includes/WebRequest.php:228
WebRequest::getGPCVal phase3/includes/WebRequest.php:250
WebRequest::getVal phase3/index.php:56

13 years agoRevert r74913, caused many problems, and was only likely to cause more in the future
Sam Reed [Sun, 17 Oct 2010 21:18:04 +0000 (21:18 +0000)]
Revert r74913, caused many problems, and was only likely to cause more in the future

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 17 Oct 2010 20:36:41 +0000 (20:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-17 19:57:00 UTC)

13 years agoFollowup r74918, rm leftover debugging
Chad Horohoe [Sun, 17 Oct 2010 20:36:07 +0000 (20:36 +0000)]
Followup r74918, rm leftover debugging

13 years ago* Revert r69013 (Use `` instead of wfShellExec() like the old installer). This fails...
Chad Horohoe [Sun, 17 Oct 2010 20:34:25 +0000 (20:34 +0000)]
* Revert r69013 (Use `` instead of wfShellExec() like the old installer). This fails for people in safe_mode and for people with shell_exec in disable_functions. wfShellExec() handles these scenarios. For installation, we'll set $wgMaxShellMemory at 0 to disable the ulimit.
* Make envCheckShellLocale() use wfShellExec() as well (also works on OSX :)

13 years agorm always-true isOK() check
Chad Horohoe [Sun, 17 Oct 2010 19:35:13 +0000 (19:35 +0000)]
rm always-true isOK() check

13 years agoMove profiler stuff to own folder, updater AutoLoader to match
Sam Reed [Sun, 17 Oct 2010 19:04:05 +0000 (19:04 +0000)]
Move profiler stuff to own folder, updater AutoLoader to match

ProfilerSimpleTrace isn't in AutoLoader. Neither is ProfilerStub

Profiler also says " * This file is only included if profiling is enabled"...

13 years agoFor some reason we're not calling preInstall() like we should
Chad Horohoe [Sun, 17 Oct 2010 19:02:59 +0000 (19:02 +0000)]
For some reason we're not calling preInstall() like we should

13 years agoFollowup r74392. Also cache result of getUser call (may be called twice)
Sam Reed [Sun, 17 Oct 2010 18:54:39 +0000 (18:54 +0000)]
Followup r74392. Also cache result of getUser call (may be called twice)

13 years agoFollowup r69904, make call to getRandomString static in Parser->unserialiseHalfParsed...
Sam Reed [Sun, 17 Oct 2010 18:51:00 +0000 (18:51 +0000)]
Followup r69904, make call to getRandomString static in Parser->unserialiseHalfParsedText()

13 years agoDeprecate User::getPageRenderingHash() as follow-up to r70783.
Platonides [Sun, 17 Oct 2010 17:28:25 +0000 (17:28 +0000)]
Deprecate User::getPageRenderingHash() as follow-up to r70783.

13 years agoFollowup r74847, reduce some more duplication by moving the foreach() logic to a...
Chad Horohoe [Sun, 17 Oct 2010 17:20:12 +0000 (17:20 +0000)]
Followup r74847, reduce some more duplication by moving the foreach() logic to a common method.
Also move these functions together

13 years agoFixup r71449, can't use $var::method() in < 5.3 :(
Chad Horohoe [Sun, 17 Oct 2010 17:09:45 +0000 (17:09 +0000)]
Fixup r71449, can't use $var::method() in < 5.3 :(
Use call_user_func() instead

13 years agoDon't set the padding of all sides of links with icons, only set the one that is...
Derk-Jan Hartman [Sun, 17 Oct 2010 15:27:10 +0000 (15:27 +0000)]
Don't set the padding of all sides of links with icons, only set the one that is actually needed.
Fixes bug 25548

13 years agoUse getAttribute( 'href', 2), so we can preserve relative paths if we want.
Derk-Jan Hartman [Sun, 17 Oct 2010 15:12:24 +0000 (15:12 +0000)]
Use getAttribute( 'href', 2), so we can preserve relative paths if we want.

Fixes bug 25549

13 years agoUse the getter per r74822 CR.
Platonides [Sun, 17 Oct 2010 14:10:26 +0000 (14:10 +0000)]
Use the getter per r74822 CR.

13 years agoAnd while I'm at it, one more tweak to --memory-limit: use 'max' instead of -1 for...
Max Semenik [Sun, 17 Oct 2010 10:18:08 +0000 (10:18 +0000)]
And while I'm at it, one more tweak to --memory-limit: use 'max' instead of -1 for clarity

13 years agoFix for r74849: use 'default' instead of 0 to indicate no memory-limit change.
Max Semenik [Sun, 17 Oct 2010 08:59:34 +0000 (08:59 +0000)]
Fix for r74849: use 'default' instead of 0 to indicate no memory-limit change.

13 years agofixed some doxygen warnings
Alexandre Emsenhuber [Sat, 16 Oct 2010 22:13:28 +0000 (22:13 +0000)]
fixed some doxygen warnings

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sat, 16 Oct 2010 19:18:14 +0000 (19:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-16 18:47:00 UTC)

13 years agoPer Platonides, follow-up to r67834: fix doc and removed no more needed return-by...
Alexandre Emsenhuber [Sat, 16 Oct 2010 18:58:29 +0000 (18:58 +0000)]
Per Platonides, follow-up to r67834: fix doc and removed no more needed return-by-ref of Parser::getTitle()

13 years agosvn:eol-style native
Alexandre Emsenhuber [Sat, 16 Oct 2010 18:47:46 +0000 (18:47 +0000)]
svn:eol-style native

13 years agoFollow-up r74841:
Max Semenik [Sat, 16 Oct 2010 18:33:45 +0000 (18:33 +0000)]
Follow-up r74841:
* Moved command line parsing up so that the first use of --memory-limit actually works
* Now limit of 0 means that we shouldn't attempt to change it at all

13 years agoMake envCheckGraphics use locateExecutable(). Move path stuff to a single method
Chad Horohoe [Sat, 16 Oct 2010 18:19:00 +0000 (18:19 +0000)]
Make envCheckGraphics use locateExecutable(). Move path stuff to a single method

13 years agoFollowup r74841, RELEASE-NOTES
Chad Horohoe [Sat, 16 Oct 2010 18:01:20 +0000 (18:01 +0000)]
Followup r74841, RELEASE-NOTES

13 years agoAllow overriding default memory limits in maintenance scripts (which is usually to...
Chad Horohoe [Sat, 16 Oct 2010 17:30:34 +0000 (17:30 +0000)]
Allow overriding default memory limits in maintenance scripts (which is usually to disable it). Helpful for people on Suhosin which yells at you for trying to disable the limit ;-)

13 years agoFix r72905: don't run $endTime through wfTimestamp() twice
Roan Kattouw [Sat, 16 Oct 2010 16:53:10 +0000 (16:53 +0000)]
Fix r72905: don't run $endTime through wfTimestamp() twice

13 years agoRenamed all setup() in tests to setUp(). Although PHP doesn't care, PHPUnit docs...
Max Semenik [Sat, 16 Oct 2010 15:07:55 +0000 (15:07 +0000)]
Renamed all setup() in tests to setUp(). Although PHP doesn't care, PHPUnit docs prefer the latter. Removed a pointless override in one case.

13 years ago* Fix r74790 by actually calling setup (using parent::setup)
Antoine Musso [Sat, 16 Oct 2010 13:24:35 +0000 (13:24 +0000)]
* Fix r74790 by actually calling setup (using parent::setup)
* Replace inexistant markTestIgnored() method with markTestSkipped()
* Add comments

13 years agoIf using PHPUnit version 3.5.0 or later, make use of its Autoloader
Antoine Musso [Sat, 16 Oct 2010 10:39:00 +0000 (10:39 +0000)]
If using PHPUnit version 3.5.0 or later, make use of its Autoloader

13 years agoCreate a new ParserOptions()
Platonides [Fri, 15 Oct 2010 23:16:11 +0000 (23:16 +0000)]
Create a new ParserOptions()

13 years agoUse the accessor for getting mOptions.
Platonides [Fri, 15 Oct 2010 23:10:05 +0000 (23:10 +0000)]
Use the accessor for getting mOptions.
I'm not touching the accesses from the preprocessors since
I don't know if the call could add a penalty.

13 years agoRevert RELEASE-NOTES change from r68272, which was reverted in r68343.
Platonides [Fri, 15 Oct 2010 23:02:49 +0000 (23:02 +0000)]
Revert RELEASE-NOTES change from r68272, which was reverted in r68343.

13 years agoFollow r69904. Make Parser::getRandomString real private.
Platonides [Fri, 15 Oct 2010 22:12:19 +0000 (22:12 +0000)]
Follow r69904. Make Parser::getRandomString real private.
Parser_DiffTest::dtUniqPrefix is now lazyloader.
I also fixed the typo in its declaration.

13 years agor71546 broke imagemagick usage in Windows, since cmd.exe takes the variable
Platonides [Fri, 15 Oct 2010 19:48:21 +0000 (19:48 +0000)]
r71546 broke imagemagick usage in Windows, since cmd.exe takes the variable
names as the program name.
I'm just not exporting those variables here, but we need to support them in Windows, too.
We could use putenv() but that seems ugly (and risky). A better solution would be to have
wfShellExec() call proc_open() with a modified environment.

A POSIX shell is required to accept variable assignments before the command so we shouldn't
have problems on any UNIX-like system.
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Fri, 15 Oct 2010 19:18:12 +0000 (19:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-15 19:02:00 UTC)

13 years ago* (bug 24792) API help caching doesn't vary on $wgUser->isAnon(), causes staleness
Sam Reed [Fri, 15 Oct 2010 17:13:38 +0000 (17:13 +0000)]
* (bug 24792) API help caching doesn't vary on $wgUser->isAnon(), causes staleness

13 years agocl_sortkey now back down to varbinary(230). Glad PG doesn't have this issue.
Greg Sabino Mullane [Fri, 15 Oct 2010 15:39:48 +0000 (15:39 +0000)]
cl_sortkey now back down to varbinary(230). Glad PG doesn't have this issue.

13 years agoFixed stupid copy+paste error from r74109
Max Semenik [Fri, 15 Oct 2010 14:11:59 +0000 (14:11 +0000)]
Fixed stupid copy+paste error from r74109

13 years agoFollow up r74725. Also add $lang parameter to EditSectionLink.
Platonides [Thu, 14 Oct 2010 22:13:43 +0000 (22:13 +0000)]
Follow up r74725. Also add $lang parameter to EditSectionLink.
Document the changes in hooks.txt

13 years agocl_sortkey should be 230 bytes long, not 255
Aryeh Gregor [Thu, 14 Oct 2010 21:47:02 +0000 (21:47 +0000)]
cl_sortkey should be 230 bytes long, not 255

Bug 25503, reported by Dmitriy.  When switching it to binary, I figured
that since it would always be one byte per character now, there would be
room to make it the full 255 bytes.  In fact, if cl_to is utf8, the
(cl_to, cl_type, cl_sortkey, cl_from) index will be 255*3 + 1 + 255 + 4
= 1025 bytes, longer than the max of 1000.  Shortening cl_sortkey to 230
bytes fixes this (fix tested by Dmitriy).

I didn't add an updater because if you're already running the current
schema without problems, you don't need this change.

13 years agoBig attack on unused variables...
Sam Reed [Thu, 14 Oct 2010 20:53:04 +0000 (20:53 +0000)]
Big attack on unused variables...

13 years agoAnother followup to r71426, $ni to $fieldRecord
Sam Reed [Thu, 14 Oct 2010 20:34:01 +0000 (20:34 +0000)]
Another followup to r71426, $ni to $fieldRecord

13 years agoFollowup r71426, not $nc it's $fieldRecord
Sam Reed [Thu, 14 Oct 2010 20:31:34 +0000 (20:31 +0000)]
Followup r71426, not $nc it's $fieldRecord

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Thu, 14 Oct 2010 19:36:21 +0000 (19:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-14 19:25:00 UTC)

13 years agoFixes for r74787:
Max Semenik [Thu, 14 Oct 2010 18:27:27 +0000 (18:27 +0000)]
Fixes for r74787:
* Don't call the check from every tests, there's setup() for that
* Check for FTS3 presence for SQLite, version is only partially relevant here as full-text search was added to default build options in 3.5.3, but it was accessible even before that. And even on 3.6 people can choose not to build with FTS.

13 years agospaces -> tabs
Chad Horohoe [Thu, 14 Oct 2010 18:26:15 +0000 (18:26 +0000)]
spaces -> tabs

13 years ago* sqlite 3.3 fails, raising version to 3.6 just like parserTests.php
Antoine Musso [Thu, 14 Oct 2010 18:01:09 +0000 (18:01 +0000)]
* sqlite 3.3 fails, raising version to 3.6 just like parserTests.php
* skip tests that need DB support

Maybe someone could implements this using the magic __call method.

13 years agoCleanup of SimpleSeleniumTestCase. Removed unnecessary include.
Priyanka Dhanda [Thu, 14 Oct 2010 17:56:52 +0000 (17:56 +0000)]
Cleanup of SimpleSeleniumTestCase. Removed unnecessary include.

13 years agoAdded missing file for r74780
Priyanka Dhanda [Thu, 14 Oct 2010 17:06:07 +0000 (17:06 +0000)]
Added missing file for r74780

13 years ago* WebStart.php and SeleniumWebSettings.php allow include files and global config...
Priyanka Dhanda [Thu, 14 Oct 2010 16:38:40 +0000 (16:38 +0000)]
* WebStart.php and SeleniumWebSettings.php allow include files and global config variables to be set based on the testsuite being run. See discussion in mediawiki.org/wiki/SeleniumFramework#Test_Wiki_configuration
* Let test suites run without logging in.

13 years ago* (Bug 25451) Language::time() and ::date() misfunction when given timestamps in...
Niklas Laxström [Thu, 14 Oct 2010 15:59:20 +0000 (15:59 +0000)]
* (Bug 25451) Language::time() and ::date() misfunction when given timestamps in wrong format

Convert given times to correct format like ::timeandate() already does.
Based on patch by Thorsten Glaser <tg@debian.org>.

13 years agoAdd sgs code for Samogitian and deprecate bat-smg.
Niklas Laxström [Thu, 14 Oct 2010 09:14:45 +0000 (09:14 +0000)]
Add sgs code for Samogitian and deprecate bat-smg.

See also bug 25522.

13 years agoadded support for junit log file output, which is neede by phpUnderControl
Markus Glaser [Thu, 14 Oct 2010 00:42:38 +0000 (00:42 +0000)]
added support for junit log file output, which is neede by phpUnderControl

13 years ago* start / stop selenium server on Linux
Markus Glaser [Thu, 14 Oct 2010 00:06:24 +0000 (00:06 +0000)]
* start / stop selenium server on Linux
* credits to Dan Nessett

13 years agoadded credits to Priyanka Dhanda and Daniel Kinzler
Markus Glaser [Wed, 13 Oct 2010 23:57:28 +0000 (23:57 +0000)]
added credits to Priyanka Dhanda and Daniel Kinzler

13 years ago* handle PHP 5.2 ini files
Markus Glaser [Wed, 13 Oct 2010 23:52:42 +0000 (23:52 +0000)]
* handle PHP 5.2 ini files
* sample ini file for PHP 5.2
* credits to dan nessett

13 years agoWhite space changes
Trevor Parscal [Wed, 13 Oct 2010 23:52:37 +0000 (23:52 +0000)]
White space changes

13 years agoFixup tabs/whitespace
Sam Reed [Wed, 13 Oct 2010 23:44:41 +0000 (23:44 +0000)]
Fixup tabs/whitespace

13 years agoFixup r74646
Sam Reed [Wed, 13 Oct 2010 23:43:21 +0000 (23:43 +0000)]
Fixup r74646

Remove unreachable return false;

Fix $tohis to $this

13 years agoResourceLoaderModule::concatStyles returns an Array, hence getPrimaryStyles does
Sam Reed [Wed, 13 Oct 2010 23:28:34 +0000 (23:28 +0000)]
ResourceLoaderModule::concatStyles returns an Array, hence getPrimaryStyles does

13 years agoAssignment in loop conditions suck
Sam Reed [Wed, 13 Oct 2010 23:11:40 +0000 (23:11 +0000)]
Assignment in loop conditions suck

while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes

Add some braces

13 years agofollow-up to r74742: fix typos
Jack Phoenix [Wed, 13 Oct 2010 22:43:37 +0000 (22:43 +0000)]
follow-up to r74742: fix typos

13 years agoAssignment in loop conditions suck
Sam Reed [Wed, 13 Oct 2010 22:35:27 +0000 (22:35 +0000)]
Assignment in loop conditions suck

while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in config

13 years agoAssignment in loop conditions suck
Sam Reed [Wed, 13 Oct 2010 22:34:25 +0000 (22:34 +0000)]
Assignment in loop conditions suck

while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in maintenance stuffs (more to come)

13 years agoFixes bug in wikibits that causes addPortletLink to fail when adding tabs to the...
Trevor Parscal [Wed, 13 Oct 2010 21:58:04 +0000 (21:58 +0000)]
Fixes bug in wikibits that causes addPortletLink to fail when adding tabs to the vector skin.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 13 Oct 2010 19:36:44 +0000 (19:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-13 19:22:00 UTC)

13 years agoFixup "} elseif ( $cond[0] = '!' ) {" from r35983
Sam Reed [Wed, 13 Oct 2010 19:01:21 +0000 (19:01 +0000)]
Fixup "} elseif ( $cond[0] = '!' ) {" from r35983

NB, why are some revisions marked ok by no one? :S

13 years agoAdded $lang parameter to DoEditSectionLink hook. Allows extensions that add or modif...
Jack D. Pond [Wed, 13 Oct 2010 18:45:43 +0000 (18:45 +0000)]
Added $lang parameter to DoEditSectionLink hook.  Allows extensions that add or modify links to use wfMsgExt to build those links consistent with parent function doEditSectionLink.

13 years agoremoving test file
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:27:03 +0000 (00:27 +0000)]
removing test file

13 years agotesting if I can commit
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:26:36 +0000 (00:26 +0000)]
testing if I can commit

13 years agoFollow up r70940. This call should use the hook $result.
Platonides [Tue, 12 Oct 2010 23:20:12 +0000 (23:20 +0000)]
Follow up r70940. This call should use the hook $result.

13 years agoRemove unused array index, add a couple of braces
Sam Reed [Tue, 12 Oct 2010 22:48:22 +0000 (22:48 +0000)]
Remove unused array index, add a couple of braces

13 years agoFinished what r67300 started, by using #ba0000 as the broken "red" link color.
Trevor Parscal [Tue, 12 Oct 2010 21:28:17 +0000 (21:28 +0000)]
Finished what r67300 started, by using #ba0000 as the broken "red" link color.

13 years agoImproves on r72776 by adding documentation about the limitations of ResourceLoaderWik...
Trevor Parscal [Tue, 12 Oct 2010 21:19:51 +0000 (21:19 +0000)]
Improves on r72776 by adding documentation about the limitations of ResourceLoaderWikiModule and making use of the MWNamespace::getCanonicalName method rather than depending on $wgCanonicalNamespaceNames.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 12 Oct 2010 19:49:45 +0000 (19:49 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-12 19:36:00 UTC)

13 years ago* Test for the presence of addEventListener on the element on which we will actually...
Derk-Jan Hartman [Tue, 12 Oct 2010 19:15:40 +0000 (19:15 +0000)]
* Test for the presence of addEventListener on the element on which we will actually use it.

Just in case someone messes with the normal environment.

13 years agoA note about symbolic link and dirname() / include() ...
Antoine Musso [Tue, 12 Oct 2010 18:20:48 +0000 (18:20 +0000)]
A note about symbolic link and dirname() / include() ...

13 years agoPiece I was going to commit in r74681
Max Semenik [Tue, 12 Oct 2010 18:16:53 +0000 (18:16 +0000)]
Piece I was going to commit in r74681

13 years agoImproves on r69445 by removing unneeded conditional. Also fixes a comment typo.
Trevor Parscal [Tue, 12 Oct 2010 18:15:53 +0000 (18:15 +0000)]
Improves on r69445 by removing unneeded conditional. Also fixes a comment typo.

13 years agoFollow-up r74628: convert two remaining calls of patchPath()
Max Semenik [Tue, 12 Oct 2010 18:14:36 +0000 (18:14 +0000)]
Follow-up r74628: convert two remaining calls of patchPath()

13 years agoSimplifies r73680 by letting FormatJson::encode do it's magic with handling null...
Trevor Parscal [Tue, 12 Oct 2010 17:52:32 +0000 (17:52 +0000)]
Simplifies r73680 by letting FormatJson::encode do it's magic with handling null and string values correctly.

13 years agoEnumerate private member to fix build problem on CC
Mark A. Hershberger [Tue, 12 Oct 2010 17:40:52 +0000 (17:40 +0000)]
Enumerate private member to fix build problem on CC

13 years agoNOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit....
Mark A. Hershberger [Mon, 11 Oct 2010 22:50:06 +0000 (22:50 +0000)]
NOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit. THE PHPUnit HARNESS NEEDS TO BE FIXED IN THIS CASE. Running parser tests by the traditional “php parserTests.php” verified to work without failures.
Committing this to get the parser tests running under PHPUnit on the whole.  I expect to find fixes for the PHPUnit harness shortly.

* Construct ParserOptions with a user in ExtraParserTest and set up wgLang if it gets set to null — which *was* happening PHPUnit. Note that this probably shows a bug that I wasn't able to track down.
* Adjust phpunit tests so that they execute and report Parser test failures properly.  Attempt to make parser test titles the test titles PHPUnit sees.
* Add E_STRICT reporting to PHPUnit testing.
* Provide PHPUnitParserTest as an exension of ParserTest to handle necessary PHPUnit calls for running parser tests under PHPUnit.
* Use dirname() instead of relative paths (i.e. “..”) where SearchEngineTest.php looks for bootstrap.php.
* Sprinkle teardownGlobals() in exit points for teardownDatabase()
* Make ParserTest::chomp() static.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 11 Oct 2010 19:10:39 +0000 (19:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-11 19:00:00 UTC)