Commit graph

22709 commits

Author SHA1 Message Date
Niklas Laxström
efeecf08a1 Substitute variables and parse grammar also on NS_PROJECT_TALK aliases, as it is used quite often. Ref: bug 17267 2009-01-31 17:00:23 +00:00
Roan Kattouw
20fec70243 Fix up r46646: instead of outputting displaytitle="" when {{DISPLAYTITLE}} isn't used (or isn't valid), output the 'normal' title instead 2009-01-31 16:35:23 +00:00
Roan Kattouw
82b34d1b03 API: (bug 17239) Added prop=displaytitle to action=parse 2009-01-31 16:29:15 +00:00
Roan Kattouw
06b5d0f9d5 API: (bug 17224) Add siprop=rightsinfo to meta=siteinfo. Modified patch by Brianna Laugher 2009-01-31 15:56:52 +00:00
Roan Kattouw
8e361227a2 Revert r46512 (Add "check" parameter to action=email) and its followups r46515 and r46517. This functionality is already present in list=users (as usprop=emailable), where it belongs 2009-01-31 13:20:36 +00:00
Roan Kattouw
2e6fb0623e API: (bug 17182) Fix pretty printer so URLs with parentheses in them are autolinked correctly 2009-01-31 13:05:12 +00:00
Andrew Garrett
cff78fbda1 Fix r46628 -- I'd misunderstood the nature of the hack. People wanted to append the string to be truncated to an empty string, not the reverse. 2009-01-31 11:43:42 +00:00
Rotem Liss
dd485900fd Localization update for he, and several whitespace fixes + messages.inc fixes. 2009-01-31 11:20:44 +00:00
Aaron Schulz
534e58d491 Styled #mw-data-after-content in cologneblue.css to match the rest of the font (bug 17110) 2009-01-31 09:07:42 +00:00
Andrew Garrett
8288b1eaf2 Fix r46502 -- Title::newFromRedirectRe doesn't exist -- assuming you meant newFromRedirectRecurse. 2009-01-31 08:03:42 +00:00
Andrew Garrett
090fc696ca E_STRICT (call-time pass-by-reference) 2009-01-31 07:55:40 +00:00
Andrew Garrett
ed8623d113 Allow af_public_comments to be wikitext.
Relatedly, add parseInline function to OutputPage, to avoid duplicating the same awful regex in wfMsgExt.
2009-01-31 01:59:13 +00:00
Alex Z
a01e861968 Allow the {{NAMESPACE}}, {{TALKSPACE}}, and {{SUBJECTSPACE}} magic words (and their urlencoding versions) to be used as parser functions to return the desired namespace for a given title. 2009-01-31 01:35:18 +00:00
Brion Vibber
fa140836b5 * (bug 17146) Fix for UTF-8 and short word search for some possible MySQL configs
Language::stripForSearch() was lowercasing input, but producing 'U8' for its unicode and short-word normalizations... but SearchUpdate::doUpdate() was running *that* through an additional strtolower() before actually saving to the database.
It's possible that some folks configurations were applying a case-sensitive search on the search table (?) which would make these not match up when actually searching. Going ahead and producing 'u8' right off will ensure these stay in sync.
2009-01-31 01:19:18 +00:00
Andrew Garrett
8d6213da2a Don't allow padding parser functions to be used to truncate strings. This breaks in some situations, and also encourages its use to reconstruct StringFunctions with core parser functions, which is undesirable for performance and usability reasons. 2009-01-31 00:46:38 +00:00
Andrew Garrett
dc77abf286 Don't show tag filter boxes if no tags are defined. To support this change without bringing down servers, cache the list of valid tags in the object cache. 2009-01-30 23:24:29 +00:00
Andrew Garrett
e981f82d28 Consistency: Replace 'edits' with 'changes' 2009-01-30 22:21:23 +00:00
Bryan Tong Minh
ff78c9382b Removing the new upload code from trunk so that patches do not accidentilly get applied here. 2009-01-30 22:08:23 +00:00
Chad Horohoe
fb64595f36 Remove two unused $wgUsers. 2009-01-30 22:03:23 +00:00
Chad Horohoe
02e48817da Handle this todo: Allow local redirects to foreign images to be displayed on the local wiki. We already store this data in the redirect table anyway. 2009-01-30 19:59:38 +00:00
Andrew Garrett
cd0a6fcbaf E_NOTICE 2009-01-30 19:41:10 +00:00
Alexandre Emsenhuber
3de5407e64 Fix comment for compatibility with doxygen 2009-01-30 19:36:11 +00:00
Raimond Spekking
5f0a8c9561 Revert r46524 per Nikerabbits comment 2009-01-30 16:45:09 +00:00
Niklas Laxström
6bc5d62a78 bug 17252: Galician numbering format 2009-01-30 16:31:51 +00:00
Brion Vibber
73fd2995ed Clean up database access in revisiondelete 2009-01-30 00:15:19 +00:00
Shinjiman
7976280b82 Localisation updates Cantonese and Chinese 2009-01-30 00:08:53 +00:00
Andrew Garrett
5d9c73333d Add missing <tags> message. 2009-01-29 23:07:10 +00:00
Roan Kattouw
7babbd2fc5 Add the 'movenotallowedfile' message to the API message map. Turns out that's all I needed to do to support file moving through the API :D 2009-01-29 23:01:13 +00:00
Andrew Garrett
aa5bd3f47a Abuse Filter changes designed for testing filters against real data:
* Add searching and filtering functionality to the existing 'test' interface.
* Add an 'examine' interface designed for testing filters against a previous change, selectable through the search interface in either the 'test' or the 'examine' view.
* Minor enabling change in ChangesList core, to allow subclassing.
2009-01-29 22:44:31 +00:00
Siebrand Mazeland
a8c2535263 Localisation updates for core messages from Betawiki (2009-01-29 21:14 UTC) 2009-01-29 21:30:05 +00:00
Aaron Schulz
41b9aacfb8 Make userCan() short getUserPermissionsErrorsInternal() 2009-01-29 21:09:14 +00:00
Raimond Spekking
e922aef373 * Move class=error from message to program code. Other languages will be handled by Translatewiki
* Wrap message 'confirmemail_pending' into a div with CSS classes "error" and "mw-confirmemail-pending"
* Fix double escaping of submit button
2009-01-29 20:54:47 +00:00
Alexandre Emsenhuber
e58028f9e5 Document UserIsBlockedGlobally hook 2009-01-29 19:48:56 +00:00
Bryan Tong Minh
57d7e2bb88 Also return why the target user is not valid 2009-01-29 19:30:18 +00:00
Bryan Tong Minh
7058f802a2 Kill code duplication & other style tweaks 2009-01-29 19:27:44 +00:00
Brion Vibber
2630350fec Partial revert of r45778 and friends "(bug 15936) New page's patrol button should always be visible"
The permission & patrolled checks on every view seem to be a performance problem. Have backed this out live; backing it out in SVN until resolved.
2009-01-29 18:00:55 +00:00
Aaron Schulz
773163a69a Short-circuit block check 2009-01-29 16:26:35 +00:00
Aaron Schulz
d415d607b6 Use quickUserCan rather than strange boolean param :) 2009-01-29 16:03:13 +00:00
Rotem Liss
b9151f2218 * Localization update for he.
* Removing duplicate messages in en in AbuseFilter.
2009-01-29 15:49:48 +00:00
Domas Mituzas
bd45e49bc0 stray comma, did anyone test this? 2009-01-29 15:41:00 +00:00
Shinjiman
7ae2a91214 Localisation updates Chinese
Cleanup: removing obsolete/outdated messages for zh-tw which are same as zh-hant
2009-01-29 14:49:26 +00:00
Philip Tzou
9d431a4d45 mTables' element must not be left blank, to ensure the translate() function could always return a string. 2009-01-29 10:09:19 +00:00
Siebrand Mazeland
99733619ef Revert r46523, r46525. Spewing errors. See below. Behaviour observed on http://translatewiki.net.
PHP Notice:  Undefined property:  FakeConverter::$mMainLanguageCode in /var/www/w/languages/Language.php on line 2230
PHP Notice:  Undefined property:  FakeConverter::$mVariants in /var/www/w/languages/Language.php on line 2233
PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /var/www/w/languages/Language.php on line 2233
PHP Notice:  Undefined property:  FakeConverter::$mMainLanguageCode in /var/www/w/languages/Language.php on line 2234
2009-01-29 08:59:53 +00:00
Philip Tzou
2a59db5897 mTables' element must not be left blank, to ensure the translate() function could always return a string. 2009-01-29 07:43:03 +00:00
Raimond Spekking
4b5874d606 Add a newline in front of the message to avoid wrong parsing when the message text starts with line-start-markup such as a table or list.
The missing newline was the real culprit of the breakage seen in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45651#c1531
2009-01-29 07:01:51 +00:00
Philip Tzou
3bea66b61a Move method 'getPreferredVariant' to Language class, patched by Fdcn. 2009-01-29 06:51:20 +00:00
Aaron Schulz
0eb7783c29 If an item isn't going into RC, don't send to UDP unless explicitly told to do so 2009-01-29 04:15:47 +00:00
X!
73ba55efd6 Forgot to remove that 2009-01-29 04:13:50 +00:00
X!
38299137f7 Per 46512#c1554, moving check to before required params, returns a result rather than an error, and it must be posted. 2009-01-29 03:23:25 +00:00
Brion Vibber
e136d9c6a7 Revert r46447 in Collection -- fixed bug in Categoryfinder class it was trying to work around.
Categoryfinder::seed() was passing category names through Title::newFromText($ct,NS_CATEGORY), which meant that if the name started with what looks like a namespace, that would override the NS_CATEGORY default.
Thus you got 'Wikipedia:Books' -> text portion 'Books' when you wanted 'Category:Wikipedia:Books' -> text portion 'Wikipedia:Books'.
Using Title::makeTitleSafe(NS_CATEGORY,$ct) instead forces it to always use the category namespace.
Additionally, I've added a check for invalid input -- previously a bad input leading to an invalid title would just kill it dead with a fatal error. Invalid input in the category list is now skipped.
2009-01-29 01:29:43 +00:00