--- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_adherentcard_create.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_create.tpl.php @@ -17,7 +17,8 @@ */ // Protection to avoid direct call of template -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ print "Error, template page can't be called as URL"; exit; } --- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_adherentcard_edit.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_edit.tpl.php @@ -17,7 +17,8 @@ */ // Protection to avoid direct call of template -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ print "Error, template page can't be called as URL"; exit; } @@ -134,8 +135,8 @@ - ">  - "> + ">  + "> --- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_adherentcard_view.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_view.tpl.php @@ -17,7 +17,8 @@ */ // Protection to avoid direct call of template -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ print "Error, template page can't be called as URL"; exit; } @@ -118,21 +119,21 @@ control->tpl['showend']; if (empty($user->socid)) { - echo '
'; + echo '
'; - if ($user->rights->adherent->creer) { - echo ''.$langs->trans('Modify').''; - } + if ($user->rights->adherent->creer) { + echo ''.$langs->trans('Modify').''; + } - if (!$this->control->tpl['user_id'] && $user->rights->user->user->creer) { - echo ''.$langs->trans("CreateDolibarrLogin").''; - } + if (!$this->control->tpl['user_id'] && $user->rights->user->user->creer) { + echo ''.$langs->trans("CreateDolibarrLogin").''; + } - if ($user->rights->adherent->supprimer) { - echo ''.$langs->trans('Delete').''; - } + if ($user->rights->adherent->supprimer) { + echo ''.$langs->trans('Delete').''; + } - echo '

'; + echo '

'; } echo $this->control->tpl['actionstodo'];