Skip to content

Commit 95d03b4

Browse files
committed
Use namespaced imports
Also raises MW requirement to 1.40 as they were introduced in that version.
1 parent 4e53c60 commit 95d03b4

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"license-name": "GPL-3.0-only",
99
"requires": {
10-
"MediaWiki": ">= 1.35.0"
10+
"MediaWiki": ">= 1.40.0"
1111
},
1212
"url": "https://www.mediawiki.org/wiki/Extension:Create_Page",
1313
"descriptionmsg": "cp-desc",

includes/CreatePageHooks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use MediaWiki\Html\Html;
34
use MediaWiki\MediaWikiServices;
45

56
class CreatePageHooks {

includes/specials/SpecialCreatePageRedirect.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
use MediaWiki\Title\Title;
4+
25
/**
36
* This file is part of the MediaWiki extension CreatePage.
47
*

0 commit comments

Comments
 (0)