]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/frio_boot.php
Merge pull request #6221 from wouter705/20181201-nginx-sample-doc
[friendica.git] / view / theme / frio / php / frio_boot.php
index 243ea5c72c4aeb46b1dd9c11e53fb9b50e5fb533..3f8ed1ed0b0e87a857aff5e56c84781768d8bbff 100644 (file)
@@ -21,12 +21,12 @@ function load_page(App $a)
        } elseif ((isset($_GET['mode']) && ($_GET['mode'] == 'none'))) {
                require 'view/theme/frio/none.php';
        } else {
-               $template = 'view/theme/' . current_theme() . '/'
+               $template = 'view/theme/' . $a->getCurrentTheme() . '/'
                        . ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php';
                if (file_exists($template)) {
                        require_once $template;
                } else {
-                       require_once str_replace('theme/' . current_theme() . '/', '', $template);
+                       require_once str_replace('theme/' . $a->getCurrentTheme() . '/', '', $template);
                }
        }
 }