A free, self-hostable news aggregator…
Minor syntax
Alexandre Alapetite97d4250bd308
diff --git a/app/Models/ReadingMode.php b/app/Models/ReadingMode.phpindex 06170a468..1e97e228a 100644--- a/app/Models/ReadingMode.php+++ b/app/Models/ReadingMode.php@@ -107,7 +107,7 @@ class FreshRSS_ReadingMode {public static function getReadingModes() {$actualView = Minz_Request::actionName();$defaultCtrl = Minz_Request::defaultControllerName();- $isDefaultCtrl = Minz_Request::controllerName() == $defaultCtrl;+ $isDefaultCtrl = Minz_Request::controllerName() === $defaultCtrl;$urlOutput = Minz_Request::currentRequest();$readingModes = array(diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtmlindex 403ac5cd6..a018a7185 100644--- a/app/layout/nav_menu.phtml+++ b/app/layout/nav_menu.phtml@@ -136,7 +136,7 @@$readingModes = Minz_ExtensionManager::callHook('nav_reading_modes', $readingModes);/** @var FreshRSS_ReadingMode $mode */- foreach($readingModes as $mode) {+ foreach ($readingModes as $mode) {?><a class="view_normal btn <?php if ($mode->isActive()) { echo 'active'; } ?>" title="<?php echo $mode->getTitle(); ?>" href="<?php echo Minz_Url::display($mode->getUrlParams()); ?>"><?php echo $mode->getName(); ?>