Use `LinkHandler::getControllerLink()` cleanup
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Nov 2022 12:39:34 +0000 (13:39 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Nov 2022 12:39:34 +0000 (13:39 +0100)
files/lib/page/LegalNoticePage.class.php

index 55c2aff45ec8eac4df5866378c26bccd07e58e7a..8b085af96d9c35fa9c0c0e75ba62fdabc8b167ae 100644 (file)
@@ -25,7 +25,7 @@ final class LegalNoticePage extends AbstractPage
     {
         parent::readParameters();
 
-        $this->canonicalURL = LinkHandler::getInstance()->getLink('LegalNotice');
+        $this->canonicalURL = LinkHandler::getInstance()->getControllerLink(static::class);
     }
 
     /**