Replace current_theme() and current_theme_url() calls
This commit is contained in:
parent
3213715b60
commit
fde3d6f870
9 changed files with 22 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,9 +19,11 @@
|
|||
*/
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
function get_scheme_info($scheme)
|
||||
{
|
||||
$theme = current_theme();
|
||||
$theme = get_app()->getCurrentTheme();
|
||||
$themepath = 'view/theme/' . $theme . '/';
|
||||
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue