]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/frio_boot.php
Merge pull request #3797 from rabuzarus/20171015_-_duplicate_event
[friendica.git] / view / theme / frio / php / frio_boot.php
index ee7acb979773a47f343b5bf41f062268644ec3e3..91e0f6ff357afb686d1f315da654cda2d279e471 100644 (file)
@@ -7,6 +7,7 @@
  *
  */
 
+use Friendica\App;
 
 /**
  * @brief Load page template in dependence of the template mode
@@ -14,9 +15,9 @@
  * @todo Check if this is really needed.
  */
 function load_page(App $a) {
-       if(isset($_GET["mode"]) AND ($_GET["mode"] == "minimal")) {
+       if(isset($_GET["mode"]) && ($_GET["mode"] == "minimal")) {
                require "view/theme/frio/minimal.php";
-       } elseif((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
+       } elseif((isset($_GET["mode"]) && ($_GET["mode"] == "none"))) {
                require "view/theme/frio/none.php";
        } else {
                $template = 'view/theme/' . current_theme() . '/'