dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mass conversion to SpecialPageFactory service
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogPage.php
diff --git
a/includes/logging/LogPage.php
b/includes/logging/LogPage.php
index
265a41c
..
af99940
100644
(file)
--- a/
includes/logging/LogPage.php
+++ b/
includes/logging/LogPage.php
@@
-223,10
+223,10
@@
class LogPage {
public static function actionText( $type, $action, $title = null, $skin = null,
$params = [], $filterWikilinks = false
) {
public static function actionText( $type, $action, $title = null, $skin = null,
$params = [], $filterWikilinks = false
) {
- global $wgLang, $wg
ContLang, $wg
LogActions;
+ global $wgLang, $wgLogActions;
if ( is_null( $skin ) ) {
if ( is_null( $skin ) ) {
- $langObj =
$wgContLang
;
+ $langObj =
MediaWikiServices::getInstance()->getContentLanguage()
;
$langObjOrNull = null;
} else {
$langObj = $wgLang;
$langObjOrNull = null;
} else {
$langObj = $wgLang;
@@
-294,9
+294,11
@@
class LogPage {
return $title->getPrefixedText();
}
return $title->getPrefixedText();
}
- $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
+ $services = MediaWikiServices::getInstance();
+ $linkRenderer = $services->getLinkRenderer();
if ( $title->isSpecialPage() ) {
if ( $title->isSpecialPage() ) {
- list( $name, $par ) = SpecialPageFactory::resolveAlias( $title->getDBkey() );
+ list( $name, $par ) = $services->getSpecialPageFactory()->
+ resolveAlias( $title->getDBkey() );
# Use the language name for log titles, rather than Log/X
if ( $name == 'Log' ) {
# Use the language name for log titles, rather than Log/X
if ( $name == 'Log' ) {