MediaWiki REL1_31
CategoryTree.php
Go to the documentation of this file.
1<?php
2
14if ( function_exists( 'wfLoadExtension' ) ) {
15 wfLoadExtension( 'CategoryTree' );
16 // Keep i18n globals so mergeMessageFileList.php doesn't break
17 $wgMessagesDirs['CategoryTree'] = __DIR__ . '/i18n';
18 /* wfWarn(
19 'Deprecated PHP entry point used for CategoryTree extension. ' .
20 'Please use wfLoadExtension instead, ' .
21 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
22 ); */
23 return true;
24} else {
25 die( 'This version of the CategoryTree extension requires MediaWiki 1.25+' );
26}
27
28// To maintain compatibility with configuration we currently keep
29// the defines, but there are deprecated, and we'll be removed in
30// a future MediaWiki release, in addition to this file.
31
36define( 'CT_MODE_CATEGORIES', 0 );
37define( 'CT_MODE_PAGES', 10 );
38define( 'CT_MODE_ALL', 20 );
39define( 'CT_MODE_PARENTS', 100 );
40
45define( 'CT_HIDEPREFIX_NEVER', 0 );
46define( 'CT_HIDEPREFIX_ALWAYS', 10 );
47define( 'CT_HIDEPREFIX_CATEGORIES', 20 );
48define( 'CT_HIDEPREFIX_AUTO', 30 );
wfLoadExtension( $ext, $path=null)
Load an extension.
$wgMessagesDirs['ReplaceText']