Sam Reed
68c90be0a0
Another big cull on unused variables and such
2010-10-29 21:55:29 +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
Matěj Grabovský
a6c63efe65
Removed description in $wgExtensionCredits where descriptionmsg was used
2010-08-10 15:27:44 +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
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
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
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
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
Siebrand Mazeland
bc388d6493
* stylize.php, trailing whitespace removed, indentation updated
...
* removed CategoryTree::init(). Loading messages explicitly is no longer needed
* removed commented out code bits.
2010-04-20 22:00:34 +00:00
Siebrand Mazeland
b8648c8661
* Remove $wgExtensionCredits['description'] where $wgExtensionCredits['descriptionmsg'] present. This feature was introduced in MediaWiki 1.12, and 'description' is not used if 'descriptionmsg' is present.
...
* Random indentation updates and trailing whitespace removed
2010-02-22 23:41:51 +00:00
Sam Reed
5d1c27e51a
Mass convert NULL -> null. Left strings and comments alone, obviously.
...
As per ^demon's suggestion
2010-01-06 21:24:10 +00:00
Chad Horohoe
1db4e16297
Nuking fallback code for MW < 1.12 in most extensions (there's like 5 or 6 left I haven't done). Couple of points:
...
* 1.11 and below aren't supported anymore, so we don't need to be maintaining back-compat code for it anymore. This is why we branch extensions
* The vast majority of these were using $wgParser. This defeats the purpose of ParserFirstCallInit...allowing you to use parsers other than $wgParser. All these extensions now work in any instance of the Parser, not just $wgParser
2009-09-04 22:22:12 +00:00
Siebrand Mazeland
cd5deee70b
* Babel, CategoryTree, MagicNoNumberedHeadings, RegexFunctions and SmoothGallery: new style magic words
...
* MagicNoNumberedHeadings: add extension description in i18n file, reindent
* bump versions where applicable
2009-08-14 11:25:54 +00:00
Siebrand Mazeland
f30fa2030e
* Rename "<ExtName>.i18n.alias.php" to "<ExtName>.alias.php"
...
* Add support for ConfirmEdit and Mibbit special page localisation to Translate
2009-05-24 22:12:11 +00:00
Shinjiman
0e556756e2
* (bug 18242) Show the Subversion revision number per extensions in Special:Version (currently applied on some extensions to get the entries file)
2009-04-26 05:22:33 +00:00
Chad Horohoe
4ff8be6829
Big commit. Removing svn-version and svn-date from extensions. Per the list, these versions do not give valuable information and are often wildly inaccurate.
2009-03-26 17:39:49 +00:00
Andrew Garrett
47d75cfb22
Bump style version
2009-03-09 11:54:39 +00:00
Daniel Kinzler
85519eadd0
fix squid caching: use $wgSquidMaxage instead of $wgSquidMaxAge
2009-02-04 11:20:39 +00:00
Andrew Garrett
41afc38c73
Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
...
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.
Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland
793882aeb4
Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.
2008-11-26 23:17:15 +00:00
Brion Vibber
ed0590ed5e
Tweak to r43493 -- trim whitespace on the inside right side of the quote as well as the left (was incorrectly re-stripping outside the quote, where we already stripped whitespace)
2008-11-14 23:40:36 +00:00
Raimond Spekking
06ebf14220
Bump version number for changed CSS per r43492.
2008-11-14 16:41:30 +00:00
Daniel Kinzler
d6ed2562e0
strip quotes from parameter values given io parameter function. quotes become optional, like with tags
2008-11-14 13:03:03 +00:00
Alexandre Emsenhuber
6a91ac58e5
PHP 5.3.0alpha1 compatibility (same issue as r38995: E_WARNING: argument 2 cannot be passed by reference, value given)
2008-08-09 14:33:16 +00:00
Daniel Kinzler
63e2567287
adding option for expandable category-bar. not fully functional until skin refactoring is merged in. Just dont use $wgCategoryTreeHijackPageCategories until then.
2008-07-11 23:18:41 +00:00
Daniel Kinzler
20c74ecc5e
support special page aliases
2008-07-04 22:58:28 +00:00
Rotem Liss
200485740b
Removing 'font-weight: bold' for the subcategories: Seems weird in category pages, as any subcategory is bold, and doesn't help much when only subcategories are shown. Even when both subcategories and articles are shown in Special:CategoryTree, the subcategories are already distinct because of the + sign.
2008-07-04 14:21:12 +00:00
Daniel Kinzler
76e22d15df
added EXPERIMENTAL option to hijack category links and make them expandable (inverse) category trees.
2008-07-02 21:16:55 +00:00
Daniel Kinzler
bbdba735c6
optionally show category tree in the sidebar (requires skin update from r36917)
2008-07-02 15:13:45 +00:00
Daniel Kinzler
40f8a88138
added noparse flag to parserfunction output, as requested by bug 13028
2008-07-02 09:58:18 +00:00
Daniel Kinzler
e366e21edd
added inverse mode to navigate parent categories
2008-07-02 09:49:28 +00:00
Daniel Kinzler
bd7a5de2bf
added to force inclusion of ct scripts on all pages
2008-07-02 08:49:13 +00:00
Daniel Kinzler
f1ae48340e
introduced configurable namespace filtering (and fixed some glitches)
2008-07-01 21:40:42 +00:00
Daniel Kinzler
30739f8a50
support common tag attributes
2008-06-30 21:35:01 +00:00
Daniel Kinzler
d7958d00cf
smarter modes for hideprefix option. namespace is now hidden for subcategories per default
2008-06-30 21:22:03 +00:00
Daniel Kinzler
595c3cfaef
Show member counts in category tree. Requires r36814 of Category.php and CategoryPage.php.
2008-06-30 14:09:47 +00:00
Daniel Kinzler
dbfd3e4833
Restructuring and revamping; more messages, more options, better config, more flexible ajax interface. Should be fully backwards compatible. It will hopefully even work for people with old JS code cached.
2008-06-28 20:13:20 +00:00
Danny B.
eb65656ba2
* correcting my last commit (copypasting is evil :-/)
2008-06-25 14:48:56 +00:00
Danny B.
dba4199551
* adding to proper group on Special:SpecialPages
2008-06-25 14:45:50 +00:00
Tim Starling
5c2a6236a4
Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits.
2008-05-06 11:59:58 +00:00
Raimond Spekking
56bd285d84
* Add a nice fieldset around the input form
...
* Use proper XML function
2008-03-18 17:38:32 +00:00
Niklas Laxström
de7401f502
* Some performance and validity tweaks
2008-03-02 13:37:26 +00:00
Daniel Kinzler
f0e96d91c3
versioning (test for svn:keywords)
2008-02-27 10:37:52 +00:00
Siebrand Mazeland
18ba9f7daa
* CategoryTree uses wfLoadExtensionMessages now
...
* add descriptionmsg and version in extension credits where missing
* update Translate
2008-02-04 10:25:48 +00:00
Siebrand Mazeland
bce152a958
Whitespace fixes
2008-02-04 09:22:12 +00:00
Bertrand Grondin
6bddbad132
Add internationalization extension description message in [[Special:Version]]
2008-02-03 17:57:14 +00:00
Tim Starling
d9c4d11b84
Use isHTML, noargs/noparse don't exist in the new parser. Can't reproduce the whitespace problem mentioned in the comment, and there are other ways to deal with them anyway.
2008-01-25 10:44:05 +00:00
Siebrand Mazeland
d7c3a1eb4e
revert r28306, r28308, r28309, r28312
2007-12-16 18:45:23 +00:00
Siebrand Mazeland
bcc9ee49dc
* complete $wgExtensionCredits
...
* remove trailing whitespace
2007-12-09 12:56:07 +00:00
Brion Vibber
5ec542b685
Revert r27175: always initialise globals; prevent register_globals exploits.
2007-11-14 17:23:26 +00:00