Skip to content

Commit

Permalink
Update entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentIsai authored Oct 17, 2024
1 parent 0ecf6f9 commit e3a0e6d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions MissingWiki.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@

<?php

if ( !$wgCommandLineMode ) {
if ( MW_ENTRY_POINT !== 'cli ) {
http_response_code( 404 );
$requestWikiUrl = 'https://meta.wikiforge.net/wiki/Special:RequestPremiumWiki?wpsubdomain=' . substr( $wgDBname, 0, -4 );

$output = <<<EOF
<!DOCTYPE html>
<html lang="en">
Expand All @@ -29,7 +26,7 @@
<h1><b>Wiki not found</b></h1>
<p class="lead">Check your spelling and try again.</p>
<p>
<a href="{$requestWikiUrl}" class="btn btn-lg btn-outline-primary" role="button">Start this wiki</a>
<a href="https://wikiforge.xyz/plans.html" class="btn btn-lg btn-outline-primary" role="button">Start this wiki</a>
</p>
</div>
</div>
Expand Down

0 comments on commit e3a0e6d

Please sign in to comment.