diff --git a/src/Common/Service/MetaData.php b/src/Common/Service/MetaData.php index 8a9093d9..f6b14a5f 100644 --- a/src/Common/Service/MetaData.php +++ b/src/Common/Service/MetaData.php @@ -89,7 +89,7 @@ public function getTitles(): Service\MetaData\Collection array_filter([ $this->title, $this->isTitleAppendAppName() - ? Config::get('APP_NAME') + ? $this->getAppName() : null, ]) ) diff --git a/views/errors/html/401.php b/views/errors/html/401.php index 9c3cc989..63d549ab 100644 --- a/views/errors/html/401.php +++ b/views/errors/html/401.php @@ -5,7 +5,7 @@ --> - 401 Unauthorised - <?=\Nails\Config::get('APP_NAME')?> + 401 Unauthorised - <?=\Nails\Factory::service('MetaData')->getAppName()?> - 404 Page Not Found - <?=\Nails\Config::get('APP_NAME')?> + 404 Page Not Found - <?=\Nails\Factory::service('MetaData')->getAppName()?> - An Error Occurred - <?=\Nails\Config::get('APP_NAME')?> + An Error Occurred - <?=Factory::service('MetaData')->getAppName()?> - Down For Maintenance - <?=\Nails\Config::get('APP_NAME')?> + Down For Maintenance - <?=\Nails\Factory::service('MetaData')->getAppName()?>

- © + © getAppName() . ' ' . date('Y')?>
diff --git a/views/structure/header/nails-default.php b/views/structure/header/nails-default.php index 2cacb39f..923379f9 100644 --- a/views/structure/header/nails-default.php +++ b/views/structure/header/nails-default.php @@ -17,7 +17,7 @@

- + getAppName(), 'style="text-decoration:none;color:inherit;"')?>