Commit graph

31058 commits

Author SHA1 Message Date
Platonides
8a0282e238 Move some globals into the class. 2010-09-29 16:05:46 +00:00
Platonides
adf45bb4e1 Tiny changes, fix comment, remove unused globals and throw and exception instead of a fatal if given a wrong langcode. 2010-09-29 15:54:43 +00:00
Platonides
3d408e8d5b Remove $wgServerName. Its only usage was for {{servername}}, and needed to be kept in sync with $wgServer in LocalSettings.
None of the 3 globals based on it changed if you set it in LocalSettings.

Note that all those !isset( $wgServerName ) in ApiTests were useless, since if not in LocalSettings it would be 'localhost', not null (as still are those !isset( $wgServer )).
2010-09-29 15:47:56 +00:00
Platonides
9f48e9e965 Fight PHP Fatal error: Call to a member function attributes() on a non-object 2010-09-29 15:22:47 +00:00
Max Semenik
3f38197f26 Revert r73887. I blame Nikerabbit! 2010-09-29 12:09:55 +00:00
Max Semenik
b3700978c1 Fixed a few parser tests that were failing for me when run by PHPUnit 2010-09-29 09:05:47 +00:00
Raimond Spekking
c2c80265b9 Localisation updates for core and extension messages from translatewiki.net (2010-09-28 18:52:00 UTC) 2010-09-28 19:02:58 +00:00
Antoine Musso
841adbaedf Rewrite messenging for old message deletion. The old one is boring. 2010-09-28 18:44:25 +00:00
Chad Horohoe
028d2f7e8c Unify setUp/tearDown in ApiSetup, rather than duplicating in ApiWatchTest. Also fix some errors with not passing an array reference that were being suppressed (but silently work, yay PHP) 2010-09-28 18:13:42 +00:00
Chad Horohoe
267229410a Followup r64181, rm comment that doesn't fit anymore 2010-09-28 17:10:51 +00:00
Chad Horohoe
54cc097d38 Use suite user/password rather than assuming WikiSysop 2010-09-28 17:08:57 +00:00
Niklas Laxström
9d285a54b4 Revert r73879 for now, not ready yet. 2010-09-28 15:58:53 +00:00
Chad Horohoe
6ab191b801 Followup r73884, remove unused file (obsoleted in r68544) 2010-09-28 15:53:24 +00:00
Chad Horohoe
6ce0eb5ae5 Followup r73880, forgot to give kbd and samp their attribute whitelists 2010-09-28 15:41:55 +00:00
Max Semenik
ebf79e4058 DatabaseSqlite: better check for error. Noticed by Nikerabbit 2010-09-28 13:46:23 +00:00
Chad Horohoe
002cdd47e1 Move parser test related stuff to tests directory
* Moved test record stuff to testHelpers.inc, could be useful for non-parser test stuff?
* Everything else in tests/parser
* parserTestsParserTime from r12533 doesn't seem used?
2010-09-28 12:24:56 +00:00
Chad Horohoe
57aee600f7 Sanity check on result from SHOW PROCESSLIST, foreach -> while (sorta followup to r68878) 2010-09-28 11:39:10 +00:00
Chad Horohoe
979508b9bf More bug 671: whitelist <kbd> and <samp> for user input. Followup per r70164's comment. 2010-09-28 11:12:56 +00:00
Niklas Laxström
8b3ffea9c2 Replace imho ugly viewsourcefor subtitle with viewsourcetitle and viewsourceheader (for <title> and <h1> respectively). 2010-09-28 10:04:22 +00:00
Max Semenik
a3359e650e Follow-up r68878: ensure that returned value is int 2010-09-28 08:32:09 +00:00
Niklas Laxström
ec1714baee Don't show empty source code for non-existing pages if editing was prevented by a permission error 2010-09-28 08:16:42 +00:00
Chad Horohoe
97a0c12f0e Fix icky info/error/warning box styling 2010-09-28 03:18:49 +00:00
Brion Vibber
543ed490e4 Clean tabs/spaces for r73853 2010-09-28 02:33:43 +00:00
Brion Vibber
a09cb2ce9e Fix tab/space, use null as default value rather than string to match expected return (cleanup from r73859) 2010-09-28 02:24:59 +00:00
Brion Vibber
c35cabe334 Tweak tab vs spaces from r73860 2010-09-28 02:18:35 +00:00
Sam Reed
9d1e45bf42 Tweak/add some documentation as hints for some code analysis 2010-09-28 01:33:11 +00:00
Sam Reed
73c78be11e Define variable before usage in hook call 2010-09-28 01:21:38 +00:00
Sam Reed
cd5c1a59a1 Swap a couple of while loops for foreach 2010-09-28 01:21:15 +00:00
Sam Reed
b3dadacb32 Minor followup to r66061, make the examples more explicit/verbose (different types of query module) 2010-09-28 00:56:04 +00:00
Trevor Parscal
d48f16ea4a Improves on fix in r73808 which was aimed at correcting a mistake made when making IEFixes.js ResourceLoader compatible. This uses the undefined keyword as an initial value, to emulate the value that would be assigned when using "var myVariable;". 2010-09-27 23:50:20 +00:00
Antoine Musso
d8e8f0b05f Adds a make target to build phpunit code coverage which will be generated to
/docs/code-coverage . You will need the Xdebug PHP extension to run code
coverage.
2010-09-27 20:19:22 +00:00
Raimond Spekking
923ac1e433 Localisation updates for core and extension messages from translatewiki.net (2010-09-27 19:19:00 UTC) 2010-09-27 19:39:45 +00:00
Antoine Musso
58ae12601a update my personal email address (following r73779) 2010-09-27 18:46:16 +00:00
Trevor Parscal
108fb9b207 Fixed typo in a comment 2010-09-27 18:43:21 +00:00
Trevor Parscal
dc723fc710 * Improved on r73567, this makes WebRequest::getFuzzyBool case insensitive, making 'false', 'FALSE', 'FaLsE', etc to be boolean false
* Fixed syntax error in Skin.php
2010-09-27 15:59:58 +00:00
Roan Kattouw
b334000f35 Revert r72816 and do it properly: the SELECT should be executed on the master 2010-09-27 15:51:47 +00:00
Chad Horohoe
e4189f5920 Fix a bunch of '? true : false' instances 2010-09-27 14:24:13 +00:00
Roan Kattouw
67482b7786 Fix an instance of window.someVar; that slipped through the cracks 2010-09-27 13:06:58 +00:00
Roan Kattouw
900b9f377f Fix indentation 2010-09-27 13:06:35 +00:00
Roan Kattouw
f9066a7528 Fix indentation 2010-09-27 12:30:04 +00:00
Raimond Spekking
708ba1c37d Localisation updates for core and extension messages from translatewiki.net (2010-09-26 19:39:00 UTC) 2010-09-26 19:56:28 +00:00
Alexandre Emsenhuber
aac9dd2e56 * (bug 25292) SkinSubPageSubtitle hook now passes the Skin object as second parameter 2010-09-26 16:37:00 +00:00
Antoine Musso
9e3b90a94d update my personal email address altern.org -> free.fr 2010-09-26 15:52:51 +00:00
Raimond Spekking
f8a2f36719 Localisation updates for core and extension messages from translatewiki.net (2010-09-25 19:25:00 UTC) 2010-09-25 19:37:18 +00:00
Max Semenik
97efc5c6c3 A few index-related fixes in SQLite DB patches, ping r66920.
The need to drop index patch-rename-iwl_prefix.sql arose from development versions that had discrepancies between tables.sql and updater. Let's just DROP IF EXISTS it.
2010-09-25 17:45:00 +00:00
Sam Reed
f0f79d19c2 Add missing @'s to r73753, document return type 2010-09-25 17:17:27 +00:00
Sam Reed
3094f9505f $name used in continue is undefined, use $message
Though, this module seems to have no limits, so not sure why we have a continue/"from"
2010-09-25 17:08:23 +00:00
Sam Reed
f1999bef69 extract is weird
Do what extract is doing explicitally
2010-09-25 17:01:17 +00:00
Platonides
75f35e9b55 Revert r73587 and fix r62087 regression by providing the default value in $comment definition.
This not only fixes the issue of line 189, but also the one at line 156.
2010-09-25 16:58:32 +00:00
Sam Reed
ee40f73227 Remove some unused keys from foreach
Documentation tweaks
2010-09-25 16:56:03 +00:00