Remove BC support for creating ConfiguredReadOnlyMode with Config
Class is not @newable / stable to create, so no need to mention in the release notes Change-Id: I04a89c9641866907b26988c91c81a3208d57a3f3
This commit is contained in:
parent
acd3bc345d
commit
0eaf981190
1 changed files with 1 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
* @since 1.29
|
||||
*/
|
||||
class ConfiguredReadOnlyMode {
|
||||
/** @var string|boolean|null */
|
||||
/** @var string|bool|null */
|
||||
private $reason;
|
||||
|
||||
/** @var string|null */
|
||||
|
|
@ -21,12 +21,6 @@ class ConfiguredReadOnlyMode {
|
|||
* Otherwise, the wiki is not read-only.
|
||||
*/
|
||||
public function __construct( $reason, $reasonFile = null ) {
|
||||
if ( $reason instanceof Config ) {
|
||||
// Before 1.34 we passed a whole Config object, which was overkill
|
||||
wfDeprecated( __METHOD__ . ' with Config passed to constructor', '1.34' );
|
||||
$reason = $reason->get( 'ReadOnly' );
|
||||
$reasonFile = $reason->get( 'ReadOnlyFile' );
|
||||
}
|
||||
$this->reason = $reason;
|
||||
$this->reasonFile = $reasonFile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue