Roan Kattouw
1ce9347d01
Re-adding ApiMain::requestWriteMode() (removed in r48901) for backwards compatibility: this way extensions can call requestWriteMode() AND define function isWriteMode() { return true; } without causing fatal errors
2009-05-20 20:07:33 +00:00
Aryeh Gregor
3b817e271a
Clarify comment on $wgAllowRealName deprecation
...
As suggested by jidanni on bug 18761.
2009-05-20 14:30:47 +00:00
Shinjiman
21c11b8f40
* (bug 5755) Introduce {{CURRENTMONTH1}} and {{LOCALMONTH1}} to display the month number without the leading zero
...
* added {{CURRENTMONTH2}} and {{LOCALMONTH2}} as alias of {{CURRENTMONTH}} and {{LOCALMONTH}} for consistency with other magic words
2009-05-20 07:14:03 +00:00
Niklas Laxström
eac9273e08
Added wfDeprecated too
2009-05-20 05:45:18 +00:00
Charles Melbye
46003d5693
Follow-up to r50776. Retaining old method names for backwards compatibility,
...
but making them as deprecated. Patch by ^demon.
2009-05-20 04:30:03 +00:00
Siebrand Mazeland
545ecfa121
Fix typo in comment
2009-05-19 23:27:53 +00:00
Niklas Laxström
cf60c784fb
* Fix plural issues
2009-05-19 19:44:23 +00:00
Aaron Schulz
d43c8027f5
(bug 17060) Renders edit comments the same for all users wrt to revdelete
2009-05-19 19:19:41 +00:00
Chad Horohoe
c458e633de
(bug 18761) Add setting to hide a list of preferences.
2009-05-19 17:07:46 +00:00
Jure Kajzer
95f953b5c3
Preparations for Oracle database abstraction update. Take II.
...
Replaced hardcoded LIMIT clauses with database function (except in maintenance).
Created unionQueries in Database and overloaded it in DatabaseOracle (not commited yet).
Replaced all UNION clauses with function calls (except in maintenance).
2009-05-19 16:58:56 +00:00
Chad Horohoe
02e9f413eb
Cleanup to r50310 & 50313: Don't use @ on chmod() and dl(), use wfSuppressWarnings()/wfRestoreWarnings()
2009-05-19 16:34:49 +00:00
Chad Horohoe
9b3711e58b
Per code review: Redo these allowBlah() functions (except allowPasswordChange) into a general allowPropChange(), update Preferences to use this. Checked extensions in SVN using AuthPlugin and none have implemented any of the allow*() functions, so nothing should break.
2009-05-19 16:23:58 +00:00
Chad Horohoe
3b632e09ac
Remove the globals.
2009-05-19 16:10:36 +00:00
Chad Horohoe
e3a4b98ceb
Followup to 50635: Consolidate all of these hacky global checks into a clean method. Also move a global and document it.
2009-05-19 16:08:53 +00:00
Arash Boostani
28a9ea2b1c
Reverting the code that encloses article sections in their own div for the time being, because there are certain scenarios that break the document structure.
2009-05-19 15:12:05 +00:00
Shinjiman
fe26b6a4d7
changing the Unihan.zip source from ftp to http in order to getting more stable download.
2009-05-19 14:54:49 +00:00
Chad Horohoe
b7f93df5b8
Code style tweak, use strval() to make this all much shorter.
2009-05-19 14:54:20 +00:00
Chad Horohoe
388bff3903
Partial revert of r49700: per Tim, this should probably stay, since it is likely to still work in a PHP4 environment.
2009-05-19 14:51:42 +00:00
Tim Starling
bb97e2e483
Reverted r46706, misses essential updates, the feature can easily be implemented another way (see CodeReview). For 1.15.
2009-05-19 08:01:36 +00:00
Aaron Schulz
d9c3c58e21
Fixed bug in r49227; use raw function now
2009-05-18 22:15:12 +00:00
Aaron Schulz
2b3f7c06d3
Removed unused broken line
2009-05-18 20:21:12 +00:00
Brion Vibber
ea4dfa62c3
Follow-up to r50689 "* (bug 18389) Localise numbers in EXIF data (patch by Marcus Buck and Ahmad Sherif). Possible FIXME: Is said not to work for "Exif version" and fraction in "Exposure time""
...
Fixes the fraction formatting for the exposure time. Haven't actually seen anything with exif version?
2009-05-18 20:20:58 +00:00
Brion Vibber
74016b7565
Move wfDebug() call about use of PHP mail() function to _before_ we mess around with warning/error reporting.
...
Previously, a failure to open the debug log file for writing would end up getting reported as a failure of mail delivery, even though we were successful.
It'll now fail silently (as it should) and won't interfere with the actual mail() call's error reporting.
2009-05-18 19:08:53 +00:00
Brion Vibber
cccbd370d4
Revert r50721 "(bug 18834) Commit Patch from User Joshua C. Lerner <jlerner@gmail.com> for include/Linker.php"
...
* Fails to explain purpose of patch
* use of SQL variable interpolation without using standard encoded variable naming convention; looks unsafe and makes review harder
* Code has issues already noted; follow-up code was also reverted.
Code needs a little more cooking I think. :)
2009-05-18 18:52:53 +00:00
Brion Vibber
04b62f23df
Revert r50727 "* (bug 18834) Show how many edits will rollback if $wgShowRollbackEditCount is set true in LocalSettings.php, bugfixes for r50721"
...
* Seems to combine unrelated changes, which complicates code review and management
* Patch is incomplete, missing default settings etc.
2009-05-18 18:48:36 +00:00
Robin Pepermans
bc29aed6c6
remove "+"
2009-05-18 18:45:09 +00:00
Robin Pepermans
1469407248
(bug 17399) CSS class for "(top)" on Special:Contributions. Patch by Umherirrender.
2009-05-18 18:40:18 +00:00
Jan Luca Naumann
05fa159917
* (bug 18834) Show how many edits will rollback if $wgShowRollbackEditCount is set true in LocalSettings.php, bugfixes for r50721
2009-05-18 18:25:06 +00:00
Jan Luca Naumann
4a04bbca9a
(bug 18834) Commit Patch from User Joshua C. Lerner <jlerner@gmail.com> for include/Linker.php
2009-05-18 14:20:46 +00:00
X!
625b0affd5
Watchlist now has a specialized <div> tag that contains a unique class for each page
2009-05-18 01:12:52 +00:00
Siebrand Mazeland
c158dc4597
* replace hard coded namespace numbers by the php define
...
* remove leading spaces, and replace leading space blocks by tabs
Inspired by a patch by jidanni in bug 18273.
2009-05-17 20:39:11 +00:00
Siebrand Mazeland
a409db9104
(bug 18411) The upload form now also checks post_max_size (patch contributed by Enukarmers, updated by Stefano Codari)
2009-05-17 19:23:12 +00:00
Siebrand Mazeland
a2264335fb
(bug 18438) Tweak HTML for preview bar for consistency and accessibility (patch contributed by Happy-melon with tweaks by siebrand)
2009-05-17 17:55:15 +00:00
Siebrand Mazeland
6479ef67fc
(bug 18466) Add note or warning when overruling a move (semi-)protection (patch by Nakon with tweaks by Siebrand)
2009-05-17 17:32:25 +00:00
Niklas Laxström
4bb02cdc33
* Follow-up for r50691, add \n to be safe in case there is line-start sensitive markup
2009-05-17 15:44:51 +00:00
Siebrand Mazeland
1f4160caa1
(bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification (patch by Happy-melon)
2009-05-17 14:57:30 +00:00
Siebrand Mazeland
ede568db6c
* (bug 18389) Localise numbers in EXIF data (patch by Marcus Buck and Ahmad Sherif). Possible FIXME: Is said not to work for "Exif version" and fraction in "Exposure time"
...
* limit lines in RELEASE-NOTES to 80 characters and remove trailing whitespace
2009-05-17 14:34:28 +00:00
Alexandre Emsenhuber
c15407d607
replace ereg(i) by preg_match since the former is deprecated since PHP 5.3
2009-05-17 13:54:58 +00:00
Chad Horohoe
15cd4ffcf5
Rm unused $wgLang and some trailing whitespace.
2009-05-17 00:09:30 +00:00
Alexandre Emsenhuber
f1199b072d
* fix MessageCache::get()'s $isFullKey param: full key is "msg/lang" as in MediaWiki namespace, not "lang/msg"
...
* whitespaces tweaks
2009-05-16 20:12:29 +00:00
Aryeh Gregor
2369b11810
(bug 16912) Tooltips on images with link= disappear
...
Patch based on one by Derk-Jan Hartman, which he wasn't able to commit
because he didn't have a MediaWiki installation to test on. One fix
made, and parser tests added.
2009-05-15 19:43:09 +00:00
Chad Horohoe
f06dec9a2b
Use getTitle() instead of getTitleFor()
2009-05-15 17:21:31 +00:00
Chad Horohoe
024e20a117
(bug 18549) Make Special:Blockip (and api action=block) respect $wgEnableUserEmail and $wgSysopEmailBans
2009-05-15 17:08:38 +00:00
Chad Horohoe
d13e10a0a1
Don't need to use $wgUser, isValidEmailAddr() is static.
2009-05-15 16:43:09 +00:00
Roan Kattouw
03c8bcb8db
Fix up r50600, which had no effect
2009-05-15 10:42:25 +00:00
Tim Starling
73776463f7
Fix breakage of SQLite ResultWrapper due to r45769. The "result" member in SQLite is actually an array and so passing by value to DatabaseSqlite::fetchObject() makes it fail to iterate. We can't really pass it by reference since that's an E_STRICT error due to a parameter type mismatch with Database. Pass the ResultWrapper instead.
...
This means that nothing at all should be passing bare result objects/arrays to Database*::fetchObject() anymore. The "instanceof ResultWrapper" logic can be removed in a subsequent commit. It can stay in this one for now for safer backport to 1.15.
2009-05-15 02:49:06 +00:00
Tom Maaswinkel
c028124f8e
Added a new hook to handle messages that aren't found in the Mediawiki Namespace (before checking the message files)
2009-05-14 21:38:45 +00:00
Chad Horohoe
b645579853
(bug 18656) Use proper directory separators in wfMkdirParents(). Normalized all \ or / to DIRECTORY_SEPARATOR.
2009-05-14 20:45:14 +00:00
Chad Horohoe
80f670d1cb
Followup to r50423: Check if the row is null, since older revs don't necessarily have rev_len populated.
2009-05-14 20:29:54 +00:00
Aaron Schulz
8432c504c3
Tweaks to r50567:
...
* Improved exception handling
* Removed redundant ls_log_id cond
* Added log_type to getLogQueryCond()
* Don't show duplicate rows in log results
* populateLogSearch now handles an older log_param format
2009-05-14 19:49:33 +00:00