Subject: Some new template exports
I'd appreciate the following variables in templates (common_out.lib.php):
and
Note: the replacement $UNB['LastPageCount'] → $UNB['TP']['LastPageCount'] needs to be done at four additional places.
- @@ -489,8 +489,10 @@
- $tpitem['addPreSubject'] = $data['output'];
- $tpitem['isMoved'] = $thread->IsMoved();
- + $tpitem['isOwn'] = $flag_own;
- $tpitem['isClosed'] = $thread->IsClosed();
- $tpitem['isImportant'] = $thread->IsImportant();
- + $tpitem['isHot'] = $flag_hot;
- if ($jmp_new)
- $tpitem['linkThread'] = $jmp_new;
- else
- @@ -2772,10 +2774,11 @@
- else
- $page_count = 1;
- - $UNB['LastPageCount'] = $page_count;
- + $UNB['TP']['LastPageCount'] = $page_count;
- if ($page > $page_count) $page = $page_count;
- if ($page == -1) $page = $page_count;
- + $UNB['TP']['ThisPageCount'] = $page;
- if ($params['##'])
- {
Alala, Alala, Gimme three wishes - CSS

jense
Show profile
Link to this post
patch-5-0-features 1.7 kBytes