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 "Comment out getSubpagesForPrefixSearch of Special:Tags"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialLockdb.php
diff --git
a/includes/specials/SpecialLockdb.php
b/includes/specials/SpecialLockdb.php
index
3382405
..
a276197
100644
(file)
--- a/
includes/specials/SpecialLockdb.php
+++ b/
includes/specials/SpecialLockdb.php
@@
-38,11
+38,9
@@
class SpecialLockdb extends FormSpecialPage {
}
public function checkExecutePermissions( User $user ) {
}
public function checkExecutePermissions( User $user ) {
- global $wgReadOnlyFile;
-
parent::checkExecutePermissions( $user );
# If the lock file isn't writable, we can do sweet bugger all
parent::checkExecutePermissions( $user );
# If the lock file isn't writable, we can do sweet bugger all
- if ( !is_writable( dirname( $
wgReadOnlyFile
) ) ) {
+ if ( !is_writable( dirname( $
this->getConfig()->get( 'ReadOnlyFile' )
) ) ) {
throw new ErrorPageError( 'lockdb', 'lockfilenotwritable' );
}
}
throw new ErrorPageError( 'lockdb', 'lockfilenotwritable' );
}
}
@@
-69,15
+67,15
@@
class SpecialLockdb extends FormSpecialPage {
}
public function onSubmit( array $data ) {
}
public function onSubmit( array $data ) {
- global $wgContLang
, $wgReadOnlyFile
;
+ global $wgContLang;
if ( !$data['Confirm'] ) {
return Status::newFatal( 'locknoconfirm' );
}
if ( !$data['Confirm'] ) {
return Status::newFatal( 'locknoconfirm' );
}
-
wfS
uppressWarnings();
- $fp = fopen( $
wgReadOnlyFile
, 'w' );
-
wfR
estoreWarnings();
+
MediaWiki\s
uppressWarnings();
+ $fp = fopen( $
this->getConfig()->get( 'ReadOnlyFile' )
, 'w' );
+
MediaWiki\r
estoreWarnings();
if ( false === $fp ) {
# This used to show a file not found error, but the likeliest reason for fopen()
if ( false === $fp ) {
# This used to show a file not found error, but the likeliest reason for fopen()