SHOW:
|
|
- or go back to the newest paste.
1 | if (isset($_REQUEST['itemId'])) { | |
2 | global $trklib; require_once('lib/trackers/trackerlib.php'); | |
3 | global $auto_query_args; | |
4 | $auto_query_args_local = array('trackerId', 'tr_initial',"tr_sort_mode$iTRACKERLIST",'tr_user', 'filterfield', 'filtervalue', 'exactvalue', 'itemId'); | |
5 | $auto_query_args = empty($auto_query_args)? $auto_query_args_local: array_merge($auto_query_args, $auto_query_args_local); | |
6 | $smarty->assign('listTrackerId', $trackerId); | |
7 | $tracker_info = $trklib->get_tracker($trackerId); | |
8 | if ($t = $trklib->get_tracker_options($trackerId)) { | |
9 | $tracker_info = array_merge($tracker_info, $t); | |
10 | } | |
11 | ||
12 | - | echo "<br/>showlastmodif:"; |
12 | + | |
13 | if ($t = $trklib->get_tracker_options($trackerId)) { | |
14 | $tracker_info = array_merge($tracker_info, $t); | |
15 | } | |
16 | ||
17 | if (!isset($showlastmodif)) { | |
18 | $showlastmodif = $tracker_info['showLastModif']; | |
19 | } | |
20 | //$smarty->assign_by_ref('showlastmodif', $showlastmodif); | |
21 | echo "<br/>trackerId: "; | |
22 | echo $trackerId; | |
23 | echo "<br/>tracker_info: "; | |
24 | echo $tracker_info; | |
25 | echo "<br/>showlastmodif: "; | |
26 | echo $showlastmodif; | |
27 | ||
28 | } |