Namespaces are one honking great idea—let's do more of those!
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shimmie2;
|
||||
|
||||
class Home extends Extension
|
||||
{
|
||||
/** @var HomeTheme */
|
||||
@ -64,10 +66,10 @@ class Home extends Extension
|
||||
$main_links = $config->get_string('home_links');
|
||||
} else {
|
||||
$main_links = '[url=site://post/list]Posts[/url][url=site://comment/list]Comments[/url][url=site://tags]Tags[/url]';
|
||||
if (class_exists("Pools")) {
|
||||
if (class_exists("Shimmie2\Pools")) {
|
||||
$main_links .= '[url=site://pool/list]Pools[/url]';
|
||||
}
|
||||
if (class_exists("Wiki")) {
|
||||
if (class_exists("Shimmie2\Wiki")) {
|
||||
$main_links .= '[url=site://wiki]Wiki[/url]';
|
||||
}
|
||||
$main_links .= '[url=site://ext_doc]Documentation[/url]';
|
||||
|
Reference in New Issue
Block a user