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
Merge "SpecialTrackingCategories: Use Config instead of globals"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialProtectedtitles.php
diff --git
a/includes/specials/SpecialProtectedtitles.php
b/includes/specials/SpecialProtectedtitles.php
index
cb6ec3c
..
b84540c
100644
(file)
--- a/
includes/specials/SpecialProtectedtitles.php
+++ b/
includes/specials/SpecialProtectedtitles.php
@@
-50,7
+50,7
@@
class SpecialProtectedtitles extends SpecialPage {
$size = $request->getIntOrNull( 'size' );
$NS = $request->getIntOrNull( 'namespace' );
$size = $request->getIntOrNull( 'size' );
$NS = $request->getIntOrNull( 'namespace' );
- $pager = new ProtectedTitlesPager( $this, array(), $type, $level, $NS, $sizetype, $size );
+ $pager = new ProtectedTitlesPager( $this
->getContext()
, array(), $type, $level, $NS, $sizetype, $size );
$this->getOutput()->addHTML( $this->showOptions( $NS, $type, $level ) );
$this->getOutput()->addHTML( $this->showOptions( $NS, $type, $level ) );
@@
-133,8
+133,7
@@
class SpecialProtectedtitles extends SpecialPage {
* @private
*/
function showOptions( $namespace, $type = 'edit', $level ) {
* @private
*/
function showOptions( $namespace, $type = 'edit', $level ) {
- global $wgScript;
- $action = htmlspecialchars( $wgScript );
+ $action = htmlspecialchars( wfScript() );
$title = $this->getPageTitle();
$special = htmlspecialchars( $title->getPrefixedDBkey() );
$title = $this->getPageTitle();
$special = htmlspecialchars( $title->getPrefixedDBkey() );
@@
-175,14
+174,12
@@
class SpecialProtectedtitles extends SpecialPage {
* @private
*/
function getLevelMenu( $pr_level ) {
* @private
*/
function getLevelMenu( $pr_level ) {
- global $wgRestrictionLevels;
-
// Temporary array
$m = array( $this->msg( 'restriction-level-all' )->text() => 0 );
$options = array();
// First pass to load the log names
// Temporary array
$m = array( $this->msg( 'restriction-level-all' )->text() => 0 );
$options = array();
// First pass to load the log names
- foreach ( $
wgRestrictionLevels
as $type ) {
+ foreach ( $
this->getConfig()->get( 'RestrictionLevels' )
as $type ) {
if ( $type != '' && $type != '*' ) {
// Messages: restriction-level-sysop, restriction-level-autoconfirmed
$text = $this->msg( "restriction-level-$type" )->text();
if ( $type != '' && $type != '*' ) {
// Messages: restriction-level-sysop, restriction-level-autoconfirmed
$text = $this->msg( "restriction-level-$type" )->text();