Fix: try to use $GLOBALS in template to correct dol_include_once problem
This commit is contained in:
parent
cff0c2c339
commit
6dc53a91c6
@ -22,6 +22,13 @@
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<?php
|
||||
|
||||
$langs = $GLOBALS['langs'];
|
||||
$somethingshown = $GLOBALS['somethingshown'];
|
||||
$linkedObjectBlock = $GLOBALS['object']->linkedObjectBlock;
|
||||
$objectid = $GLOBALS['object']->objectid;
|
||||
$num = count($objectid);
|
||||
|
||||
if ($somethingshown) { echo '<br>'; }
|
||||
print_titre($langs->trans('RelatedCommercialProposals'));
|
||||
?>
|
||||
|
||||
@ -22,6 +22,13 @@
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<?php
|
||||
|
||||
$langs = $GLOBALS['langs'];
|
||||
$somethingshown = $GLOBALS['somethingshown'];
|
||||
$linkedObjectBlock = $GLOBALS['object']->linkedObjectBlock;
|
||||
$objectid = $GLOBALS['object']->objectid;
|
||||
$num = count($objectid);
|
||||
|
||||
$langs->load("bills");
|
||||
if ($somethingshown) { echo '<br>'; }
|
||||
if ($num > 1) print_titre($langs->trans("RelatedBills"));
|
||||
|
||||
@ -22,6 +22,13 @@
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<?php
|
||||
|
||||
$langs = $GLOBALS['langs'];
|
||||
$somethingshown = $GLOBALS['somethingshown'];
|
||||
$linkedObjectBlock = $GLOBALS['object']->linkedObjectBlock;
|
||||
$objectid = $GLOBALS['object']->objectid;
|
||||
$num = count($objectid);
|
||||
|
||||
$langs->load("contracts");
|
||||
if ($somethingshown) { echo '<br>'; }
|
||||
print_titre($langs->trans('RelatedContracts'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user