MediaWiki
REL1_34
PageImages.php
Go to the documentation of this file.
1
<?php
2
if
( function_exists(
'wfLoadExtension'
) ) {
3
wfLoadExtension
(
'PageImages'
);
4
// Keep i18n globals so mergeMessageFileList.php doesn't break
5
$wgMessagesDirs
[
'PageImages'
] = __DIR__ .
'/i18n'
;
6
wfWarn
(
7
'Deprecated PHP entry point used for PageImages extension. Please use wfLoadExtension instead, '
.
8
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
9
);
10
return
;
11
}
else
{
12
die(
'This version of the PageImages extension requires MediaWiki 1.29+'
);
13
}
wfWarn
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
Definition
GlobalFunctions.php:1065
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition
GlobalFunctions.php:47
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition
ReplaceText.php:50
extensions
PageImages
PageImages.php
Generated on Mon Nov 25 2024 16:04:40 for MediaWiki by
1.10.0