{if !$user->isClient()}
<a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
{/if}
- {if in_array('ex', explode(',', $user->plugins)) && !$user->isClient()}
+ {if $user->isPluginEnabled('ex') && !$user->isClient()}
· <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
{/if}
{if !$user->isClient()}· {/if}<a class="mainMenu" href="reports.php">{$i18n.menu.reports}</a>
- {if ($user->canManageTeam() || $user->isClient()) && in_array('iv', explode(',', $user->plugins))}
+ {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
· <a class="mainMenu" href="invoices.php">{$i18n.title.invoices}</a>
{/if}
- {if (in_array('ch', explode(',', $user->plugins)) && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
- || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode
- || in_array('cl', explode(',', $user->plugins)))}
+ {if ($user->isPluginEnabled('ch') && !$user->isClient()) && ($smarty.const.MODE_PROJECTS == $user->tracking_mode
+ || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode || $user->isPluginEnabled('cl'))}
· <a class="mainMenu" href="charts.php">{$i18n.menu.charts}</a>
{/if}
{if !$user->isClient() && ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
{if !$user->isClient()}
· <a class="mainMenu" href="users.php">{$i18n.menu.users}</a>
{/if}
- {if $user->canManageTeam() && in_array('cl', explode(',', $user->plugins))}
+ {if $user->canManageTeam() && $user->isPluginEnabled('cl')}
· <a class="mainMenu" href="clients.php">{$i18n.menu.clients}</a>
{/if}
{if $user->isManager()}
<!-- End of page title and user details -->
<!-- Output errors -->
-{if $errors->yes()}
+{if $err->yes()}
<table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="error">
- {foreach $errors->getErrors() as $error}
+ {foreach $err->getErrors() as $error}
{$error.message}<br> {* No need to escape as they are not coming from user and may contain a link. *}
{/foreach}
</td>
<!-- End of output errors -->
<!-- Output messages -->
-{if $messages->yes()}
+{if $msg->yes()}
<table cellspacing="4" cellpadding="7" width="{$tab_width}" border="0">
<tr>
<td class="info_message">
- {foreach $messages->getErrors() as $message}
+ {foreach $msg->getErrors() as $message}
{$message.message}<br> {* No need to escape. *}
{/foreach}
</td>