Skip to content

Commit

Permalink
Update SemanticMediaWiki.php (#4700)
Browse files Browse the repository at this point in the history
Refs: #4699
  • Loading branch information
kghbln committed Apr 7, 2020
1 parent 23d0613 commit 056e9dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SemanticMediaWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class SemanticMediaWiki {
* the extension is activated.
*/
public static function load() {

if ( !defined( 'MEDIAWIKI' ) ) {
return;
}

if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
include_once __DIR__ . '/vendor/autoload.php';
Expand Down

0 comments on commit 056e9dd

Please sign in to comment.