We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a6a79876 authored by Mike Sheldon's avatar Mike Sheldon

Add variable to templating to make templates cleaner

parent da358ca3
......@@ -59,6 +59,7 @@ $smarty->assign('current_lang', 'en');
$smarty->assign('base_url', $base_url);
$smarty->assign('media_url', $media_url);
$smarty->assign('default_theme', $default_theme);
$smarty->assign('img_url', $base_url . '/themes/' . $default_theme . '/img/');
$smarty->assign('this_page', $_SERVER['REQUEST_URI']);
$smarty->assign('this_page_absolute',
(empty($_SERVER['HTTPS']) ? 'http://' : 'http://')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment