Skip to content

Commit

Permalink
Remove check for MediaWiki environment from settings file
Browse files Browse the repository at this point in the history
Currently, SemanticResultsFormats autoloads its setup file via Composer's autoloader and exits if it does not detect a MediaWiki environment. This prevents developers from executing tools also installed via composer such as the `phpunit` binary, or `phpcs`/`phpcbf`/`phan` etc., as Mermaid will immediately exit the process. As a fix, remove the environment check; this is also consistent with how Semantic MediaWiki itself behaves since SemanticMediaWiki/SemanticMediaWiki#1732 and SemanticMediaWiki/Mermaid#47.
  • Loading branch information
t-tomalak authored and JeroenDeDauw committed Aug 6, 2020
1 parent bd3ba39 commit da230ce
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions DefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
* @author Daniel Werner < danweetz@web.de >
*/

if ( !defined( 'MEDIAWIKI' ) ) {
die( "This file is part of the Semantic Result Formats extension. It is not a valid entry point.\n" );
}

// The formats you want to be able to use.
// See the INSTALL file or
// http://www.semantic-mediawiki.org/wiki/Semantic_Result_Formats#Installation
Expand Down

0 comments on commit da230ce

Please sign in to comment.