Skip to content

Commit 0be72c0

Browse files
committed
Add specificity to our template files
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent da0cc7a commit 0be72c0

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

controller/index_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ public function index()
6161
// Display common ideas template vars
6262
$this->display_common_vars();
6363

64-
return $this->helper->render('index_body.html', $this->language->lang('IDEAS_TITLE'));
64+
return $this->helper->render('@phpbb_ideas/index_body.html', $this->language->lang('IDEAS_TITLE'));
6565
}
6666
}

controller/list_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ public function ideas_list($sort)
118118
// Display common ideas template vars
119119
$this->display_common_vars();
120120

121-
return $this->helper->render('list_body.html', $this->language->lang('IDEA_LIST'));
121+
return $this->helper->render('@phpbb_ideas/list_body.html', $this->language->lang('IDEA_LIST'));
122122
}
123123
}

tests/controller/index_controller_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class index_controller_test extends controller_base
2020
public function controller_test_data()
2121
{
2222
return array(
23-
array(200, 'index_body.html'),
23+
array(200, '@phpbb_ideas/index_body.html'),
2424
);
2525
}
2626

tests/controller/list_controller_test.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function controller_test_data()
2424
// Call top ideas list
2525
array(
2626
200,
27-
'list_body.html',
27+
'@phpbb_ideas/list_body.html',
2828
array(
2929
'sort' => \phpbb\ideas\ext::SORT_TOP,
3030
'status' => 0,
@@ -37,7 +37,7 @@ public function controller_test_data()
3737
// Call latest ideas list
3838
array(
3939
200,
40-
'list_body.html',
40+
'@phpbb_ideas/list_body.html',
4141
array(
4242
'sort' => '',
4343
'status' => 0,
@@ -50,7 +50,7 @@ public function controller_test_data()
5050
// Call implemented ideas list
5151
array(
5252
200,
53-
'list_body.html',
53+
'@phpbb_ideas/list_body.html',
5454
array(
5555
'sort' => \phpbb\ideas\ext::SORT_DATE,
5656
'status' => \phpbb\ideas\ext::$statuses['IMPLEMENTED'],
@@ -65,7 +65,7 @@ public function controller_test_data()
6565
// New ideas sorted by date
6666
array(
6767
200,
68-
'list_body.html',
68+
'@phpbb_ideas/list_body.html',
6969
array(
7070
'sort' => \phpbb\ideas\ext::SORT_NEW,
7171
'status' => \phpbb\ideas\ext::$statuses['NEW'],
@@ -78,7 +78,7 @@ public function controller_test_data()
7878
// In progress ideas sorted by score
7979
array(
8080
200,
81-
'list_body.html',
81+
'@phpbb_ideas/list_body.html',
8282
array(
8383
'sort' => \phpbb\ideas\ext::SORT_SCORE,
8484
'status' => \phpbb\ideas\ext::$statuses['IN_PROGRESS'],
@@ -91,7 +91,7 @@ public function controller_test_data()
9191
// Duplicate ideas sorted by author
9292
array(
9393
200,
94-
'list_body.html',
94+
'@phpbb_ideas/list_body.html',
9595
array(
9696
'sort' => \phpbb\ideas\ext::SORT_AUTHOR,
9797
'status' => \phpbb\ideas\ext::$statuses['DUPLICATE'],
@@ -104,7 +104,7 @@ public function controller_test_data()
104104
// Invalid ideas sorted by date
105105
array(
106106
200,
107-
'list_body.html',
107+
'@phpbb_ideas/list_body.html',
108108
array(
109109
'sort' => \phpbb\ideas\ext::SORT_DATE,
110110
'status' => \phpbb\ideas\ext::$statuses['INVALID'],
@@ -117,7 +117,7 @@ public function controller_test_data()
117117
// Implemented ideas sorted by top
118118
array(
119119
200,
120-
'list_body.html',
120+
'@phpbb_ideas/list_body.html',
121121
array(
122122
'sort' => \phpbb\ideas\ext::SORT_TOP,
123123
'status' => \phpbb\ideas\ext::$statuses['IMPLEMENTED'],
@@ -130,7 +130,7 @@ public function controller_test_data()
130130
// All ideas sorted by date
131131
array(
132132
200,
133-
'list_body.html',
133+
'@phpbb_ideas/list_body.html',
134134
array(
135135
'sort' => \phpbb\ideas\ext::SORT_NEW,
136136
'status' => -1,
@@ -143,7 +143,7 @@ public function controller_test_data()
143143
// My ideas list
144144
array(
145145
200,
146-
'list_body.html',
146+
'@phpbb_ideas/list_body.html',
147147
array(
148148
'sort' => \phpbb\ideas\ext::SORT_MYIDEAS,
149149
'status' => -1,

0 commit comments

Comments
 (0)