X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fdefault%2Frenderer.php;h=53c2ea4410fdf07301891eb245eca56a7674268b;hb=7561718ee5113232ce917f63085d272884b0929c;hp=e1c03f42ccde1a5691c62bdcd483a66d074038de;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git
diff --git a/themes/default/renderer.php b/themes/default/renderer.php
index e1c03f42..53c2ea44 100644
--- a/themes/default/renderer.php
+++ b/themes/default/renderer.php
@@ -14,9 +14,9 @@
{
function get_icon($category)
{
- global $path_to_root, $show_menu_category_icons;
+ global $path_to_root, $SysPrefs;
- if ($show_menu_category_icons)
+ if ($SysPrefs->show_menu_category_icons)
$img = $category == '' ? 'right.gif' : $category.'.png';
else
$img = 'right.gif';
@@ -35,7 +35,7 @@
function menu_header($title, $no_menu, $is_index)
{
- global $path_to_root, $help_base_url, $db_connections;
+ global $path_to_root, $SysPrefs, $db_connections;
echo "
\n";
echo "\n";
echo "\n";
@@ -70,13 +70,13 @@
$img = " ";
$himg = " ";
echo "";
- echo "" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | ";
+ echo " " . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . " | ";
$indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
echo " | ";
echo " " . _("Preferences") . " \n";
echo " " . _("Change password") . " \n";
- if ($help_base_url != null)
+ if ($SysPrefs->help_base_url != null)
{
echo "$himg" . _("Help") . " ";
}
@@ -100,8 +100,7 @@
function menu_footer($no_menu, $is_index)
{
- global $version, $allow_demo_mode, $app_title, $power_url,
- $power_by, $path_to_root, $Pagehelp, $Ajax;
+ global $version, $path_to_root, $Pagehelp, $Ajax, $SysPrefs;
include_once($path_to_root . "/includes/date_functions.inc");
echo " | \n"; // 'main_page'
@@ -126,17 +125,13 @@
{
echo "
\n";
}
}
|