projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring - more usage of ttUser::isPluginEnabled().
[timetracker.git]
/
WEB-INF
/
templates
/
mobile
/
time_edit.tpl
diff --git
a/WEB-INF/templates/mobile/time_edit.tpl
b/WEB-INF/templates/mobile/time_edit.tpl
index
2dbd746
..
7d1e66f
100644
(file)
--- a/
WEB-INF/templates/mobile/time_edit.tpl
+++ b/
WEB-INF/templates/mobile/time_edit.tpl
@@
-214,7
+214,7
@@
function get_date() {
<tr><td>{$i18n.label.client}:</td></tr>
<tr><td>{$forms.timeRecordForm.client.control}</td></tr>
{/if}
<tr><td>{$i18n.label.client}:</td></tr>
<tr><td>{$forms.timeRecordForm.client.control}</td></tr>
{/if}
-{if
in_array('iv', explode(',', $user->plugins)
)}
+{if
$user->isPluginEnabled('iv'
)}
<tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
{/if}
{if ($custom_fields && $custom_fields->fields[0])}
<tr><td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td></tr>
{/if}
{if ($custom_fields && $custom_fields->fields[0])}