Commit graph

704 commits

Author SHA1 Message Date
Chad Horohoe 7b3001d705 More php4 constructors. Missed these somehow 2010-08-30 17:18:13 +00:00
Siebrand Mazeland 83e9f8d239 Localisation updates for core and extension messages from translatewiki.net (2010-08-24 22:46 UTC) 2010-08-24 23:02:39 +00:00
Siebrand Mazeland 26f4412853 Localisation updates for extensions from translatewiki.net
* update special page aliases.
2010-08-24 14:06:50 +00:00
Siebrand Mazeland 5d3b0d6e4d Localisation updates for extensions from translatewiki.net
* update magic words.
2010-08-24 13:20:07 +00:00
Siebrand Mazeland a46b419410 Localisation updates for core and extension messages from translatewiki.net (2010-08-24 06:24 UTC) 2010-08-24 06:37:29 +00:00
Siebrand Mazeland c5f9dff258 Localisation updates for core and extension messages from translatewiki.net (2010-08-21 22:44 UTC) 2010-08-21 23:20:48 +00:00
Siebrand Mazeland 13b1cec714 Localisation updates for core and extension messages from translatewiki.net (2010-08-18 21:52 UTC) 2010-08-18 22:11:00 +00:00
Aryeh Gregor 064ce8137b Adapt CategoryTree to the new schema
This should obsolete $wgCategoryTreeMaxScanRows, added in r67179, so I
removed it.  Note that I only tested with very basic usage, since I
don't quite understand all the complicated things this extension can do,
and some code paths are certainly going to remain inefficient, since
arbitrary namespace filtering seems possible here (at least
renderChildren() has support for it).  However, clicking the little plus
sign on category pages should now scan only as many rows as are actually
used, so no limit should be necessary.

Sorting is now by cl_type, cl_sortkey instead of cl_sortkey.  This
change has to be made to all users for efficiency, since the old index
was dropped.  It means the sort order might be somewhat unexpected in
some cases, but for basic CategoryTree use it makes no difference, since
all the results have cl_type = 'subcat' anyway.

Fixes bug 23682, I think.
2010-08-16 21:57:49 +00:00
Aryeh Gregor e2300181e5 Save up to 200 queries per click in CategoryTree
Remember, people: if you use Titles that don't have all the proper
fields prefetched, LinkCache will fetch them for you, one by one.
Fetching page_id, page_len, page_is_latest, and page_latest will make
everything work without needless queries.
2010-08-16 21:37:26 +00:00
Siebrand Mazeland 2338830d84 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 6873b490ef Use DB abstraction CategoryTree::renderChildren()
Formerly pieced it all together with strings.  This seems not to have
broken anything for basic usage, but I didn't test thoroughly.  Also
fixed some random style errors and unused variables while I was there.
2010-08-13 22:38:00 +00:00
Aryeh Gregor 07ab72b8aa 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
Matěj Grabovský a6c63efe65 Removed description in $wgExtensionCredits where descriptionmsg was used 2010-08-10 15:27:44 +00:00
Raimond Spekking 8791e508fb Localisation updates for core and extension messages from translatewiki.net (2010-08-07 18:45:00 UTC) 2010-08-07 19:16:16 +00:00
Raimond Spekking ccaf0c486b Localisation updates for core and extension messages from translatewiki.net (2010-08-06 22:06:00 UTC) 2010-08-06 22:24:01 +00:00
Raimond Spekking bcb95e3a8b Localisation updates for core and extension messages from translatewiki.net (2010-08-05 18:59:00 UTC) 2010-08-05 19:13:11 +00:00
Raimond Spekking 5c734d1974 Localisation updates for core and extension messages from translatewiki.net (2010-07-31 21:16:00 UTC) 2010-07-31 21:28:50 +00:00
Raimond Spekking 052fb7e3f2 Localisation updates for core and extension messages from translatewiki.net (2010-07-26 20:10:00 UTC) 2010-07-26 20:16:35 +00:00
Sam Reed 7beb050639 More wrong static method calls fixed 2010-07-26 13:30:31 +00:00
Sam Reed 78d6b8163d Remove some more unused globals
Kill a couple of other unused variables
2010-07-25 17:12:50 +00:00
Raimond Spekking 6dbac1a865 Localisation updates for core and extension messages from translatewiki.net (2010-07-04 18:27:00 UTC) 2010-07-04 18:55:14 +00:00
Raimond Spekking fd6009dae9 Localisation updates for core and extension messages from translatewiki.net (2010-07-03 18:40:00 UTC) 2010-07-03 19:15:49 +00:00
Raimond Spekking 3902b8fba2 Localisation updates for core and extension messages from translatewiki.net (2010-06-29 19:28:00 UTC) 2010-06-29 19:51:55 +00:00
Raimond Spekking 960d8ff132 Localisation updates for core and extension messages from translatewiki.net (2010-06-24 20:00:00 UTC) 2010-06-24 20:23:20 +00:00
Raimond Spekking 65bce3c46d Localisation updates for core and extension messages from translatewiki.net (2010-06-23 19:10:00 UTC) 2010-06-23 19:23:47 +00:00
Raimond Spekking 2de82dc3c2 Localisation updates for core and extension messages from translatewiki.net (2010-06-17 18:50:00 UTC) 2010-06-17 19:11:20 +00:00
Raimond Spekking 3f74a6d7bc Localisation updates for core and extension messages from translatewiki.net (2010-06-16 19:30:00 UTC) 2010-06-16 19:38:46 +00:00
Raimond Spekking 4dfe08d591 Localisation updates for core and extension messages from translatewiki.net (2010-06-10 18:40:00 UTC) 2010-06-10 19:00:46 +00:00
Raimond Spekking adc77f5d49 Localisation updates for core and extension messages from translatewiki.net (2010-06-09 18:50:00 UTC) 2010-06-09 19:22:07 +00:00
Siebrand Mazeland ebff4d349b Replace Title::makeTitle[Safe]( NS_SPECIAL, 'x' ) with SpecialPage::getTitleFor ( 'x' )
And a few other minor changes.
2010-06-08 19:30:48 +00:00
Raimond Spekking cbfd1b8abf Localisation updates for core and extension messages from translatewiki.net (2010-06-06 18:30:00 UTC) 2010-06-06 18:49:24 +00:00
Alexandre Emsenhuber 261d68c15a Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Siebrand Mazeland 23525da5df Localisation updates for extension messages from translatewiki.net (2010-06-05 21:01 UTC) 2010-06-05 21:10:36 +00:00
Siebrand Mazeland ea96903185 Localisation updates for extension messages from translatewiki.net (2010-06-03 22:59 UTC) 2010-06-03 23:19:03 +00:00
Daniel Kinzler b719db957d PHP compatibility: 5.3.1 is picky about pass-by-reference. Restrict use of &$foo to actual output parameters. This should probably be done for the entire code base. 2010-06-02 09:10:09 +00:00
Raimond Spekking c490ddfedc Localisation updates for core and extension messages from translatewiki.net (2010-06-01 18:25:00 UTC) 2010-06-01 18:33:40 +00:00
Roan Kattouw 833afe31a3 CategoryTree: Backport r67183 from 1.16wmf4 2010-06-01 14:28:08 +00:00
Tim Starling adca6de0aa * Per Aryeh's suggestion on CR r66987, treat categories larger than a certain size as empty. The visual presentation is not perfect, but it needs some more aggressive treatment than what I can give it right now.
* Get counts into local variables, to make the code slightly more compact.
2010-06-01 08:58:04 +00:00
Raimond Spekking 138f73dfb9 Localisation updates for core and extension messages from translatewiki.net (2010-05-31 18:55:00 UTC) 2010-05-31 19:13:41 +00:00
Raimond Spekking 0531206e2b Localisation updates for core and extension messages from translatewiki.net (2010-05-29 18:50:00 UTC) 2010-05-29 19:17:19 +00:00
Tim Starling 3c3fdfde1a * (bug 23682) Don't allow people to expand subtree when it's known to be empty, this is inefficient.
* Fixed a bug causing the "+" link to be shown even when the number of subcategories is zero, due to the DBMS returning a string instead of an integer, causing triple-equals comparison to fail.
2010-05-28 02:15:44 +00:00
Chad Horohoe 896cd1397f Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh. 2010-05-27 15:56:53 +00:00
Chad Horohoe 146353cc73 Large commit. Removed 800+ references to no-op wfLoadExtensionMessages() 2010-05-26 22:25:32 +00:00
Raimond Spekking 16e9cd695d Localisation updates for core and extension messages from translatewiki.net (2010-05-24 18:20:00 UTC) 2010-05-24 18:36:06 +00:00
Raimond Spekking 9de5e7e0f8 Localisation updates for core and extension messages from translatewiki.net (2010-05-23 20:40:00 UTC) 2010-05-23 21:12:35 +00:00
Raimond Spekking 779cb2d449 Localisation updates for core and extension messages from translatewiki.net (2010-05-21 18:35:00 UTC) 2010-05-21 19:22:53 +00:00
Raimond Spekking 36cfbd25bd Localisation updates for core and extension messages from translatewiki.net (2010-05-19 19:15:00 UTC) 2010-05-19 19:25:55 +00:00
Raimond Spekking 717983f0a8 Localisation updates for core and extension messages from translatewiki.net (2010-05-18 19:45:00 UTC) 2010-05-18 20:00:55 +00:00
Siebrand Mazeland e199c5f127 Localisation updates for extension special page aliases and magic words from translatewiki.net
* some non-essential language header eye candy was removed because these exports were made with the (slow!) magic-export.php, and not with the broken alias-export.php
2010-05-17 18:29:36 +00:00
Raimond Spekking 5279f14f7e Localisation updates for core and extension messages from translatewiki.net (2010-05-15 19:15:00 UTC) 2010-05-15 20:00:29 +00:00