Use wfLoadExtension in README.md

Since MediaWiki 1.25 wfLoadExtension is the preferred way to include
extensions. This extension requires MediaWiki 1.27.

Change-Id: Ia35287265d5e020c3a9c32ffdd3691bc9a2d502f
This commit is contained in:
Fomafix 2016-12-23 18:39:07 +01:00
parent 16c5c0eac0
commit abe39c1a80
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ Copy the Gadgets directory into the extensions folder of your
MediaWiki installation. Then add the following lines to your
LocalSettings.php file (near the end):
require_once "$IP/extensions/Gadgets/Gadgets.php";
wfLoadExtension( 'Gadgets' );
Usage
-------------

View file

@ -1 +1 @@
require_once( "{{path}}/Gadgets.php" );
wfLoadExtension( 'Gadgets' );