Conrad Irwin
7dee03cbdf
Fix for r61710. Changing subst: to subst:$1 would cause huge problems with localisation
...
instead add some proper functions to MagicWord.php to deal with the situation.
2010-01-30 12:46:16 +00:00
Roan Kattouw
8366e22bc7
API: Fix E_NOTICE. !is_null() and isset() are not equivalent when indexing arrays
2010-01-30 12:09:28 +00:00
Roan Kattouw
5823f4b9f7
Bump $wgStyleVersion for r61700
2010-01-30 12:07:40 +00:00
Conrad Irwin
13eb1fe98e
bug 22297 - "syntax for substitution that doesn't break transclusion"
...
Adds "safesubst:$1" that works similarly to "subst:$1"
(relevant to bug 5453, bug 16714, bug 4484)
2010-01-30 11:58:19 +00:00
Aaron Schulz
ee881d9e0e
* Show diff link for DELETED_TEXT revs if user can see them (like history)
...
* Broke long line
2010-01-30 09:10:03 +00:00
Shinjiman
74bf3047fe
Localisation updates Cantonese, Chinese and Literary Chinese
2010-01-30 08:49:23 +00:00
Chad Horohoe
09c32f5e02
Followup r61694, expand comment based on [[Extension:Lockout]] and also deny login from session
2010-01-30 01:28:58 +00:00
Roan Kattouw
0edf8ba4c8
Patch jQuery to test for 'nullpx' as well as 'NaNpx'
2010-01-29 23:57:44 +00:00
Chad Horohoe
4f772a5b33
Followup r61655, add sys_get_temp_dir() support to wfTempDir(), use this in HttpTest rather than duplicating code
2010-01-29 23:52:06 +00:00
Chad Horohoe
3b4eac4156
Add new global $wgBlockDisablesLogin to prevent logging in by blocked users, obsoletes new Lockout extension
2010-01-29 23:29:53 +00:00
Aryeh Gregor
f8879bfd2b
Refactor $wgEnforceHtmlIds code
...
Renamed setting to $wgExperimentalHtmlIds, off by default, and updated
the code to enforce the much laxer HTML5 rules. Still needs testing in
various browsers.
2010-01-29 21:44:01 +00:00
Alexandre Emsenhuber
fea47da072
Step two in fixing OutputPage's documentation, more or less the same as r61647
2010-01-29 21:32:45 +00:00
Aryeh Gregor
bb9dee316d
Fix whitespace in chick/main.css
...
Pointed out by Nikerabbit.
2010-01-29 20:48:41 +00:00
Rotem Liss
c88f33b692
Localization update for he.
2010-01-29 20:21:55 +00:00
Rotem Liss
5a0ab89dd0
Reverting an apparent error in r61681, about treating the English file as a regular language file (thus removing ignored messages and reverting some changes).
2010-01-29 20:19:36 +00:00
Aryeh Gregor
810e7b3355
Set background: white for Chick
...
It was setting only color: black, so text was illegible if you had a
dark background set by default. We could remove the color: rule too,
but that might mess up other things that assume dark-on-light, and
doesn't match what other skins do. Reported by Dispenser on IRC.
2010-01-29 20:13:55 +00:00
Aryeh Gregor
9524593889
Use lowercase color names in CSS for consistency
2010-01-29 20:13:37 +00:00
Raimond Spekking
a633d405d1
Localisation updates for core and extension messages from translatewiki.net (2010-01-29 19:00 UTC)
2010-01-29 20:00:23 +00:00
Mark A. Hershberger
ce0de82350
follow up r61655
...
Use Nikerabbit's much better wording for the error message.
2010-01-29 19:18:41 +00:00
Sam Reed
3f5a628221
Followup r61663 per Chads comment. Move $db declaration earlier, use $db->getType()
...
Remove now unused global
2010-01-29 17:34:32 +00:00
Alexandre Emsenhuber
638701000c
* (bug 22315) SpecialRecentChangesQuery hook now pass $query_options and checks the return value
2010-01-29 17:27:30 +00:00
Sam Reed
74efdfb00a
Followup to 61664
...
Support LoginForm::UserBlocked in ApiLogin
2010-01-29 16:45:55 +00:00
Raimond Spekking
c99c50c599
* Add USER_BLOCKED case to UserLogin.
...
* Let Lockout extension use this case for a proper error message
2010-01-29 15:25:20 +00:00
Sam Reed
f507c00826
Duplicate "definition" of $wgUser in same method
...
Move $wgDBtype later so only obtained if needed (ie we haven't died before then)
2010-01-29 14:43:26 +00:00
Sam Reed
5d553e35a3
Reduce code duplication by having tables added in all code paths, by adding before if
2010-01-29 14:38:57 +00:00
Raimond Spekking
ae8e8bcdd0
* (bug 22181) Do not truncate if the ellipsis actually make the string longer
2010-01-29 13:39:06 +00:00
Chad Horohoe
5f99fc6be9
Remove trailing ?>
2010-01-29 11:50:58 +00:00
Mark A. Hershberger
e88bf4e8b7
follow up r61319
...
took out the ".." but otherwise left it the same. On my system, this
installs an SQLite file in $IP/config/data by default using the web
installer. Setting it to "$IP/../data" presents the user with the
/full/path/to/the/MW/../data which seemed more confusing to me.
2010-01-29 08:13:23 +00:00
Mark A. Hershberger
bff36836ab
follow up r61357
...
* fix up fopen warnings — I was bedazzled by phpUnit's
set_error_handler that turned warnings into exceptions and Tim set
me right.
* Use Tim's read loop
* No need for private $fh member
* Fix some minor problems with PHP versions (no "timeout" param in
pre-5.2.1, POST issue in Hardy's PHP version where timeout is null.)
* Fix how tests are run on old versions of phpUnit.
2010-01-29 07:25:09 +00:00
Tim Starling
07b4b0b3fc
Fix for r61582: if $wgDebugPrintHttpHeaders is false, don't construct the header string and then throw it away, skip the whole code block and save a few microseconds.
2010-01-29 04:29:26 +00:00
Chad Horohoe
2ecf466c2f
(bug 22310) Only need to declare $join_conds once
2010-01-29 02:37:51 +00:00
Tim Starling
0319924c58
Fix careless errors in r61442 and r61444.
2010-01-29 00:51:08 +00:00
Aryeh Gregor
7550e0aadd
stylize.php and fix whitespace for JSMin.php
...
Two spaces were being used for indentation instead of a tab, and for
some reason stylize.php didn't fix that, but repeated
s/^\(\( \)*\) /\1\t/ worked.
2010-01-29 00:02:57 +00:00
Alexandre Emsenhuber
c69affc4f0
Step one in fixing OutputPage's documentation:
...
* Groupped methods by function
* Added documentation
* Fixed some doxygen warnings
* Some little style fixes
(more to come)
2010-01-28 21:58:50 +00:00
Raimond Spekking
a124937275
Localisation updates for core and extension messages from translatewiki.net (2010-01-27 21:30 UTC)
2010-01-28 21:54:45 +00:00
Chad Horohoe
a30810bc68
Followup r61181, put @return nothing back on history(). Some people like it.
2010-01-28 19:46:12 +00:00
Jure Kajzer
8fcb7e42a1
Fixed as per Tim's comments on r61179:
...
* made insertOneRow and getSequenceData private
* renamed fieldInfo to fieldInfoMulti and made it private (for internal use on Oracle only)
* wrapped fieldInfoMulti in fieldInfo with error if $table parameter is an array
* reverted tableName function to only support a non-array parameter
* wrapped all tableName calls with array parameter with array_map with callback
* wrapped fieldInfo into textFieldSize function to avoid reimplementation of functionality
* fixed unnessesary multiple calls to tableName with same parameter inside a single procedure
2010-01-28 14:58:45 +00:00
Roan Kattouw
10b733518d
(bug 22286) Unicode 5.1 aliases for Malayam. This was done in the Wikimedia config at first, moving it into the trunk messages file per Siebrand
2010-01-28 12:46:50 +00:00
Aaron Schulz
69c7a02132
* Fixed $opts['tagfilter'] emptiness check
...
* Doc cleanup/spacing
2010-01-28 08:57:34 +00:00
Sam Reed
cb90f19d19
Minor followup to r61609
...
If we're checking the key is *, no point reusing it, as we know what it is. Simplfy bug link/reference
2010-01-28 07:15:49 +00:00
OverlordQ
c540f66c12
Fix documentation errors (r61324)
2010-01-28 06:41:38 +00:00
Sam Reed
e311f9d380
* (bug 21922) YAML output should quote asterisk when used as key
2010-01-27 22:02:49 +00:00
Raimond Spekking
f8249c74ff
Localisation updates for core and extension messages from translatewiki.net (2010-01-27 19:00 UTC)
2010-01-27 19:19:12 +00:00
Chad Horohoe
02a59dce9f
Use isset() instead of array_key_exists()
2010-01-27 19:14:18 +00:00
Jack D. Pond
98b637402b
$mDesiredDestName property changed from protected to public. Used in extensions to check/validate/process user destination names in uploads.
2010-01-27 19:08:31 +00:00
Aryeh Gregor
b621f9f104
Use Html::element() for Xml::submitButton()
...
There are a bunch of other places where we could switch to Html methods
here too. See
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61130#c5451 >.
2010-01-27 18:59:52 +00:00
Niklas Laxström
b1e2b87b95
New configuration variables $wgDebugTimestamps and $wgDebugPrintHttpHeaders for controlling debug output.
...
I find these useful, maybe someone else will too.
2010-01-27 17:21:18 +00:00
Chad Horohoe
9bdedcc2aa
Let crazy people run updates on broken setups like 5.3.1
2010-01-27 17:02:48 +00:00
Platonides
525cc3f606
Revert r61572. These titles are output parameters. A reference is the only way they can work correctly
...
(eg. think on a hook that always does 'return $titleResult = Title::newFromText("Foo");').
2010-01-27 14:39:03 +00:00
Platonides
86814a51cc
Apply r61570 (Follow-up r61150: Do not pass objects as references in new hooks).
...
This time in the correct place.
2010-01-27 11:52:35 +00:00