Commit graph

94 commits

Author SHA1 Message Date
Reedy a9690cc876 Revert "CategoryTree: Move stuff into the extensionFunction"
This reverts commit ba481a2adb
2012-06-22 16:08:52 +00:00
Timo Tijhof ba481a2adb CategoryTree: Move stuff into the extensionFunction
* So that local settings are actually used, regardless of order.
  wgExtensionFunctions should be early enough still.

Change-Id: I38aa542f3e1940398c3a80927cf3de44790c6b7b
2012-05-29 23:29:09 +02:00
Benny Situ 593a93b07f attempt to fix bug33989 - fix the mode parameter in api call 2012-02-10 23:41:49 +00:00
Sam Reed 079968308b Documentation, stylize, remove some global dependencies 2012-02-09 01:23:31 +00:00
John Du Hart 4383d6d598 Followup r98500, fixes flash of unstyled content 2012-02-08 14:07:10 +00:00
Siebrand Mazeland 328484f6d2 Bye, bye $wgExtensionAliasesFiles (deprecated in 1.16). 2011-12-25 23:09:26 +00:00
Brion Vibber 5ceddc1fd6 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Sam Reed 3341d45b88 Oct 5 00:32:16 10.0.2.175 apache2[351]: PHP Warning: Missing argument 2 for efCategoryTreeAjaxWrapper() in /usr/local/apache/common-local/php-1.18/extensions/CategoryTree/CategoryTree.php on line 204
Already been fixed in 1.17wmf1 before, and now in 1.18wmf1
2011-10-05 00:37:15 +00:00
John Du Hart 8e3523c626 Followup r98500, conversion of the Javascript to use jQuery fully. It also makes the Javascript work outside of debug=1 (oops)
There's a couple of WTF moments in the code, this is really due to some issues with the PHP side of stuff. It really needs some TLC but for right now it works, I'll come back to it before 1.19 and clean it up.
2011-09-30 21:08:28 +00:00
John Du Hart e77ae5449b Basic ResourceLoader conversion, jQuery conversion and API use will come soon 2011-09-30 02:51:53 +00:00
Sam Reed d9edab47c8 Fix double credits, don't define multiple times 2011-04-04 17:50:28 +00:00
Sam Reed f99b2aa990 Remove some old codepaths
Kill unused globals
2011-03-18 13:50:00 +00:00
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