Skip to content

Commit b32ed91

Browse files
committed
Use Discord page instead of direct invite
1 parent 51e2696 commit b32ed91

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/controllers/Welcome.php

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public function &run( Router &$router, View &$view, array &$args ) {
1414

1515
$model = new WelcomeModel();
1616

17-
$model->discord_url = 'https://discord.gg/';
18-
$model->discord_url .= Common::$config->bnetdocs->discord->invite_code;
19-
2017
$view->render( $model );
2118

2219
$model->_responseCode = 200;

src/models/Welcome.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44

55
use \CarlBennett\MVC\Libraries\Model;
66

7-
class Welcome extends Model {
8-
9-
public $discord_url;
10-
11-
}
7+
class Welcome extends Model {}

src/templates/Welcome.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require("./header.inc.phtml");
2525
<img class="welcome-logo-gnome" alt="Gnome Icon" title="Gnome Icon" src="<?php echo Common::relativeUrlToAbsolute('/a/gnome_l.gif'); ?>"/>
2626
<p>To that end, if you would like to support us, there are a few ways you can do so. You could:</p>
2727
<p><ul>
28-
<li><a href="<?php echo Common::relativeUrlToAbsolute($this->getContext()->discord_url); ?>">join our Discord</a> and have a chat,</li>
28+
<li><a href="<?php echo Common::relativeUrlToAbsolute('/discord'); ?>">join our Discord</a> and have a chat,</li>
2929
<li><a href="<?php echo Common::relativeUrlToAbsolute('/user/register'); ?>">register</a> an account and add your knowledge to our site,</li>
3030
<li><a href="<?php echo Common::relativeUrlToAbsolute('/donate'); ?>">donate</a> to costs of running this website,</li>
3131
<li>help <a href="<?php echo Common::relativeUrlToAbsolute('https://github.com/BNETDocs/bnetdocs-web'); ?>">develop this website</a>,</li>

0 commit comments

Comments
 (0)