Skip to content

Commit 28ac907

Browse files
committed
Remove or annotate unused template variables
1 parent 8ab6aac commit 28ac907

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

controller/base.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function assign_template_block_vars($block, $rows)
115115
foreach ($rows as $row)
116116
{
117117
$this->template->assign_block_vars($block, array(
118-
'ID' => $row['idea_id'],
118+
'ID' => $row['idea_id'], // (not currently implemented)
119119
'LINK' => $this->link_helper->get_idea_link($row['idea_id']),
120120
'TITLE' => $row['idea_title'],
121121
'AUTHOR' => $this->link_helper->get_user_link($row['idea_author']),
@@ -124,7 +124,7 @@ protected function assign_template_block_vars($block, $rows)
124124
'VOTES_UP' => $row['idea_votes_up'],
125125
'VOTES_DOWN' => $row['idea_votes_down'],
126126
'USER_VOTED' => $row['u_voted'],
127-
'POINTS' => $row['idea_votes_up'] - $row['idea_votes_down'],
127+
'POINTS' => $row['idea_votes_up'] - $row['idea_votes_down'], // (not currently implemented)
128128
'STATUS' => $row['idea_status'], // for status icons (not currently implemented)
129129
'LOCKED' => $row['topic_status'] == ITEM_LOCKED,
130130
'U_UNAPPROVED_IDEA' => (($row['topic_visibility'] == ITEM_UNAPPROVED || $row['topic_visibility'] == ITEM_REAPPROVE) && $this->auth->acl_get('m_approve', $this->config['ideas_forum_id'])) ? append_sid("{$this->root_path}mcp.{$this->php_ext}", 'i=queue&mode=approve_details&t=' . $row['topic_id'], true, $this->user->session_id) : '',

event/listener.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ public function show_idea($event)
192192
$this->template->assign_vars(array(
193193
'IDEA_ID' => $idea['idea_id'],
194194
'IDEA_TITLE' => $idea['idea_title'],
195-
'IDEA_AUTHOR' => $this->link_helper->get_user_link($idea['idea_author']),
196-
'IDEA_DATE' => $this->user->format_date($idea['idea_date']),
197195
'IDEA_VOTES' => $idea['idea_votes_up'] + $idea['idea_votes_down'],
198196
'IDEA_VOTES_UP' => $idea['idea_votes_up'],
199197
'IDEA_VOTES_DOWN' => $idea['idea_votes_down'],

language/en/common.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
'IDEAS' => 'Ideas',
3939
'IDEA_DELETED' => 'Idea successfully deleted.',
40-
'IDEA_ID' => 'Idea ID',
4140
'IDEA_LIST' => 'Idea List',
4241
'IDEA_NOT_FOUND' => 'Idea not found',
4342
'IDEA_STORED_MOD' => 'Your idea has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your idea has been approved.<br /><br /><a href="%s">Return to Ideas</a>.',

0 commit comments

Comments
 (0)