MediaWiki
REL1_31
CategoryTree.php
Go to the documentation of this file.
1
<?php
2
14
if
( 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
36
define(
'CT_MODE_CATEGORIES'
, 0 );
37
define(
'CT_MODE_PAGES'
, 10 );
38
define(
'CT_MODE_ALL'
, 20 );
39
define(
'CT_MODE_PARENTS'
, 100 );
40
45
define(
'CT_HIDEPREFIX_NEVER'
, 0 );
46
define(
'CT_HIDEPREFIX_ALWAYS'
, 10 );
47
define(
'CT_HIDEPREFIX_CATEGORIES'
, 20 );
48
define(
'CT_HIDEPREFIX_AUTO'
, 30 );
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition
GlobalFunctions.php:45
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition
ReplaceText.php:50
extensions
CategoryTree
CategoryTree.php
Generated on Mon Nov 25 2024 15:34:14 for MediaWiki by
1.10.0