Commit graph

17667 commits

Author SHA1 Message Date
Alexandre Emsenhuber
319dca6b39 Seems I forgot to commit this file with r71078
*STAB*
2010-08-14 17:52:00 +00:00
Alexandre Emsenhuber
7b79d94515 * Standardised file description headers
* Added some descriptions
* Added @file where needed
2010-08-14 17:42:40 +00:00
Jeroen De Dauw
b5e5f482ec Added function to get extension type messages 2010-08-14 14:04:15 +00:00
Jack Phoenix
b5f706e069 coding style tweaks 2010-08-14 13:31:10 +00:00
Jeroen De Dauw
3c224e54ac Make NATURAL JOINs possible 2010-08-14 11:24:07 +00:00
Andrew Garrett
aa75a3061b Remove User::getToggles() code, dormant since preferences rewrite over a year ago 2010-08-14 08:46:36 +00:00
Ryan Kaldari
1a45345aa8 fix to handle case of mIndexField including a table prefix 2010-08-14 01:57:05 +00:00
Siebrand Mazeland
ff3ee553ab Localisation updates for core and extension messages from translatewiki.net (2010-08-13 21:35 UTC) 2010-08-13 23:21:38 +00:00
Aryeh Gregor
4bad1ed088 Fix extensions to work with category sort changes
Three different extensions were copy-pasting all of
CategoryPage::closeShowCategory() just to change which CategoryViewer
descendant was used.  I changed the base class to use a member variable
for the CategoryViewer class, so this reduces code duplication too.  I
only tested this on CategoryTree; MetavidWiki is certainly still broken,
from the looks of it (assumes $this->from is a string), but
PeopleCategories might be okay.  Hard to avoid breaking extensions with
this sort of schema/index change.
2010-08-13 22:07:48 +00:00
Aryeh Gregor
a6aac77d16 Revert r70960 "AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST"
Broke CategoryTree, see code review for the error message.
2010-08-13 21:39:51 +00:00
Sam Reed
380b6725d5 Remove some unused variables
Move variable in languages/classes/LanguageKu.php into commented code (used in comment)
2010-08-13 20:58:16 +00:00
Sam Reed
51a665abba It's params, not param 2010-08-13 19:44:47 +00:00
Chad Horohoe
3c528d220c Partial revert r71029, unrelated changes. Need caffeine before I commit 2010-08-13 14:38:50 +00:00
Chad Horohoe
3e1337b469 Fix #1 for r70970: Make UploadFromUrlTestSuite initialize a User instead of StubUser 2010-08-13 14:36:59 +00:00
Sam Reed
cc218ccc8f Remove some more unused variables 2010-08-13 11:43:01 +00:00
Sam Reed
710b86f0a8 Fix archiveName to archiveNames (wrong declaration)
Fix unused variable

Return params instead of saving in ApiTest
2010-08-13 11:29:13 +00:00
Sam Reed
9efab26ecd Remove a few more unused variables 2010-08-13 08:09:52 +00:00
Aryeh Gregor
4ad22c9e3f Allow HTML5 custom data attributes
HTML5 allows any attribute beginning with "data-" to be used for
site-specific purposes:

http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data

I don't see any reason not to allow this.  It means users won't have to
hackily overload title="" or class="" if they want to store per-element
data for scripts.
2010-08-12 19:19:13 +00:00
Platonides
69747f93ba Convert $wgBlobCache into a static class member.
static members don't influence serialization.
2010-08-12 18:43:06 +00:00
Platonides
4960bff13d Make $wgExternalBlobCache a local static variable.
Remove $wgExternalLoadBalancers, unused since r32578 (birth of LBFactory)
2010-08-12 18:25:04 +00:00
Chad Horohoe
985e8971c8 Get rid of StubUser. Constructing a user object isn't quite as intensive as it once was. It actually takes more time using the StubUser (construction + unstub on first call) than just initializing User::newFromSession() from the start. Either way, the real overhead starts when you start calling methods (for the nitpicky, the optimization was only about 20µs. The real gain here was eliminating a StubObject) 2010-08-12 17:10:00 +00:00
Max Semenik
ad688fc6fd DatabaseSqlite::sourceStream(): convert CHAR types, allow more spaces 2010-08-12 16:28:11 +00:00
Max Semenik
a2449fea86 maintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility 2010-08-12 16:06:47 +00:00
Platonides
f971e24aee Added missing $ to variable.
Removing (unused) global $wgDBts2schema about Postgres tsearch2
2010-08-12 14:46:32 +00:00
Platonides
11399c3230 Follow up r70520. Use canonical class name. 2010-08-12 14:37:39 +00:00
Chad Horohoe
5806e63383 AjaxDispatcher, now ~30 lines shorter and not using $_GET or $_POST 2010-08-12 14:34:54 +00:00
Platonides
37c7dd7c2b Hacky r70418 makes this global unused. 2010-08-12 14:34:39 +00:00
Platonides
50e2405a03 Refactor to avoid defining globals inside switches. 2010-08-12 14:25:07 +00:00
Platonides
5de0fbd0de No need for $wgUser since r70653 2010-08-12 14:00:10 +00:00
Platonides
9e96f8db77 Parser should only use content messages. 2010-08-12 13:23:28 +00:00
Chad Horohoe
b51547fe0d Typofix. Now you can actually enable uploads 2010-08-12 13:00:31 +00:00
Chad Horohoe
fc00ab67eb (bug 24766) Installer is installing all extensions, not just the ones you picked 2010-08-12 12:58:27 +00:00
Platonides
69ad72018b Followup r70783. Give doEditSectionLink an extra parameter with the language to use for the editsection. 2010-08-12 12:30:47 +00:00
Platonides
8111f69c83 Follow up r63404. If we are in safe mode, we do not want hashed uploads. 2010-08-12 09:55:05 +00:00
Jeroen De Dauw
539ab6f5e5 Documentation o_O 2010-08-12 07:27:48 +00:00
Sean Colombo
57f51a23a4 As per feedback on r70849, fixed bad indenting (spaces) that should be a tab. 2010-08-11 19:02:21 +00:00
Platonides
6e2ee8d921 Follow up r24808.
mime is not in getCacheFields(), so $this->mime was never populated at this point (regardless of $info['mime']) and splitMime() always returned unknown.
2010-08-11 18:56:38 +00:00
Raimond Spekking
d8a5168c2d Localisation updates for core and extension messages from translatewiki.net (2010-08-11 18:08:00 UTC) 2010-08-11 18:27:59 +00:00
Platonides
a72332929c getSkin() should get a Title as parameter. 2010-08-11 17:11:24 +00:00
Platonides
0e8e61f099 New line at end of wfDebug 2010-08-11 16:49:59 +00:00
Chad Horohoe
ddbca1b039 Followup r70875, fix default value for decode() 2010-08-11 13:03:45 +00:00
Chad Horohoe
50fe92ffb8 Revert r70874: <RoanKattouw> Dude that just looks kinda ugly 2010-08-11 12:45:59 +00:00
Chad Horohoe
fe72845c82 Boolean parameters suck, but we can make them suck less by adding constants you can use. Also doc, spacing, etc 2010-08-11 12:42:40 +00:00
Chad Horohoe
2f6e441acf Remove raw $_GET usage held over from days before WebRequest existed, was introduced in r12605 2010-08-11 12:15:16 +00:00
X!
d230a8c5f0 Followup to r70729: Add note about $wgPageProps only being seen from the API help page 2010-08-11 08:15:32 +00:00
Sean Colombo
13632f8082 Fix to #17031. See bug ticket for test code & test-results. 2010-08-11 07:19:26 +00:00
Sam Reed
0cb57fea08 Replace some instances of $wgUser passed to ParserOutput::get()/getKey() for $wgOut->parserOptions() 2010-08-10 19:57:53 +00:00
Raimond Spekking
a7a7a44b44 Localisation updates for core and extension messages from translatewiki.net (2010-08-10 19:19:00 UTC) 2010-08-10 19:34:11 +00:00
Platonides
48c2ecd244 Upgrade the warning from wfDebug to wfWarn. 2010-08-10 19:32:49 +00:00
Raimond Spekking
df547cba19 Make the subtitle of Special:Watchlist more consistent with other subtitles.
Enclose tool links by s span with a class.
Especially I see no need for the extra linebreak
2010-08-10 16:21:10 +00:00