Skip to content

Commit

Permalink
Merge pull request #42 from acacha/master
Browse files Browse the repository at this point in the history
Only require includes/SkinTemplate.php file if exists
  • Loading branch information
borkweb committed Jan 6, 2015
2 parents aa69990 + 0ff54e8 commit 4ef5a0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BootstrapMediaWiki.skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
die( -1 );
}//end if

require_once('includes/SkinTemplate.php');
//File removed on new mediawiki versions (1.24.1 at least).
//require_once('includes/SkinTemplate.php');

if(file_exists('includes/SkinTemplate.php')){
require_once('includes/SkinTemplate.php');
}

/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
Expand Down

0 comments on commit 4ef5a0f

Please sign in to comment.