X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Freports.tpl;h=bd5ab3f48e83265bde4e80ff86f7c79fcbce5532;hb=360675cb2f9116df2ad5feac2156516eabbf4ef9;hp=2f75835d1180b565125333d80552d27fd617b05c;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git
diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl
index 2f75835d..bd5ab3f4 100644
--- a/WEB-INF/templates/reports.tpl
+++ b/WEB-INF/templates/reports.tpl
@@ -167,9 +167,9 @@ function handleCheckboxes() {
-{if ((in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
+{if (($user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)) || ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN))}
- {if in_array('cl', explode(',', $user->plugins)) && !($user->isClient() && $user->client_id)}{$i18n.label.client} | {else} | {/if}
+ {if $user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)}{$i18n.label.client} | {else} | {/if}
|
{if ($custom_fields && $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN)}{$i18n.label.option} | {else} | {/if}
@@ -197,7 +197,7 @@ function handleCheckboxes() {
{/if}
{/if}
-{if in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('iv')}
{$i18n.form.time.billable} |
|
@@ -236,12 +236,12 @@ function handleCheckboxes() {
-{if in_array('cl', explode(',', $user->plugins)) || in_array('iv', explode(',', $user->plugins))}
+{if $user->isPluginEnabled('cl') || $user->isPluginEnabled('iv')}
- {if in_array('cl', explode(',', $user->plugins))}
+ {if $user->isPluginEnabled('cl')}
|
{/if}
- {if ($user->canManageTeam() || $user->isClient()) && in_array('iv', explode(',', $user->plugins))}
+ {if ($user->canManageTeam() || $user->isClient()) && $user->isPluginEnabled('iv')}
|
{/if}
@@ -250,7 +250,7 @@ function handleCheckboxes() {
{if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} |
{if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if} |
|
-{if ((($user->canManageTeam() || $user->isClient()) || in_array('ex', explode(',', $user->plugins))) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))}
+{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))}
|
{else}
|
| |