Skip to content

Commit 3ba5b89

Browse files
committed
Rename view2 to template
1 parent 1d4c56b commit 3ba5b89

37 files changed

+114
-114
lines changed

featherbb/Controller/Admin/Bans.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function display()
4747

4848
$ban_data = $this->model->find_ban($start_from);
4949

50-
$this->feather->view2->setPageInfo(array(
50+
$this->feather->template->setPageInfo(array(
5151
'admin_console' => true,
5252
'page' => $p,
5353
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Bans'), __('Results head')),
@@ -59,7 +59,7 @@ public function display()
5959
else {
6060
\FeatherBB\AdminUtils::generateAdminMenu('bans');
6161

62-
$this->feather->view2->setPageInfo(array(
62+
$this->feather->template->setPageInfo(array(
6363
'admin_console' => true,
6464
'focus_element' => array('bans', 'new_ban_user'),
6565
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Bans')),
@@ -76,7 +76,7 @@ public function add($id = null)
7676

7777
\FeatherBB\AdminUtils::generateAdminMenu('bans');
7878

79-
$this->feather->view2->setPageInfo(array(
79+
$this->feather->template->setPageInfo(array(
8080
'admin_console' => true,
8181
'focus_element' => array('bans2', 'ban_user'),
8282
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Bans')),
@@ -98,7 +98,7 @@ public function edit($id)
9898
}
9999
\FeatherBB\AdminUtils::generateAdminMenu('bans');
100100

101-
$this->feather->view2->setPageInfo(array(
101+
$this->feather->template->setPageInfo(array(
102102
'admin_console' => true,
103103
'focus_element' => array('bans2', 'ban_user'),
104104
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Bans')),

featherbb/Controller/Admin/Categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function display()
8888
{
8989
\FeatherBB\AdminUtils::generateAdminMenu('categories');
9090

91-
$this->feather->view2->setPageInfo(array(
91+
$this->feather->template->setPageInfo(array(
9292
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Categories')),
9393
'active_page' => 'admin',
9494
'admin_console' => true,

featherbb/Controller/Admin/Censoring.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function display()
4848

4949
\FeatherBB\AdminUtils::generateAdminMenu('censoring');
5050

51-
$this->feather->view2->setPageInfo(array(
51+
$this->feather->template->setPageInfo(array(
5252
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Censoring')),
5353
'focus_element' => array('censoring', 'new_search_for'),
5454
'active_page' => 'admin',

featherbb/Controller/Admin/Forums.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function edit_forum($forum_id)
116116
} else {
117117
\FeatherBB\AdminUtils::generateAdminMenu('forums');
118118

119-
$this->feather->view2->setPageInfo(array(
119+
$this->feather->template->setPageInfo(array(
120120
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Forums')),
121121
'active_page' => 'admin',
122122
'admin_console' => true,
@@ -142,7 +142,7 @@ public function delete_forum($forum_id)
142142

143143
\FeatherBB\AdminUtils::generateAdminMenu('forums');
144144

145-
$this->feather->view2->setPageInfo(array(
145+
$this->feather->template->setPageInfo(array(
146146
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Forums')),
147147
'active_page' => 'admin',
148148
'admin_console' => true,
@@ -176,7 +176,7 @@ public function display()
176176
\FeatherBB\AdminUtils::generateAdminMenu('forums');
177177

178178
$categories_model = new \FeatherBB\Model\Admin\Categories();
179-
$this->feather->view2->setPageInfo(array(
179+
$this->feather->template->setPageInfo(array(
180180
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Forums')),
181181
'active_page' => 'admin',
182182
'admin_console' => true,

featherbb/Controller/Admin/Groups.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function display()
4040

4141
\FeatherBB\AdminUtils::generateAdminMenu('groups');
4242

43-
$this->feather->view2->setPageInfo(array(
43+
$this->feather->template->setPageInfo(array(
4444
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('User groups')),
4545
'active_page' => 'admin',
4646
'admin_console' => true,
@@ -71,7 +71,7 @@ public function delete($id)
7171
} else {
7272
\FeatherBB\AdminUtils::generateAdminMenu('groups');
7373

74-
$this->feather->view2->setPageInfo(array(
74+
$this->feather->template->setPageInfo(array(
7575
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('User groups')),
7676
'active_page' => 'admin',
7777
'admin_console' => true,
@@ -84,7 +84,7 @@ public function delete($id)
8484

8585
\FeatherBB\AdminUtils::generateAdminMenu('groups');
8686

87-
$this->feather->view2->setPageInfo(array(
87+
$this->feather->template->setPageInfo(array(
8888
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('User groups')),
8989
'active_page' => 'admin',
9090
'admin_console' => true,
@@ -111,7 +111,7 @@ public function addedit($id = '')
111111

112112
$group = $this->model->info_add_group($groups, $id);
113113

114-
$this->feather->view2->setPageInfo(array(
114+
$this->feather->template->setPageInfo(array(
115115
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('User groups')),
116116
'active_page' => 'admin',
117117
'admin_console' => true,

featherbb/Controller/Admin/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function display($action = null)
7575

7676
\FeatherBB\AdminUtils::generateAdminMenu('index');
7777

78-
$this->feather->view2->setPageInfo(array(
78+
$this->feather->template->setPageInfo(array(
7979
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Index')),
8080
'active_page' => 'admin',
8181
'admin_console' => true,

featherbb/Controller/Admin/Maintenance.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function display()
3232
if ($action == 'rebuild') {
3333
$this->model->rebuild();
3434

35-
$this->feather->view2->setPageInfo(array(
35+
$this->feather->template->setPageInfo(array(
3636
'page_title' => array(Utils::escape($this->feather->forum_settings['o_board_title']), __('Rebuilding search index')),
3737
'query_str' => $this->model->get_query_str()
3838
)
@@ -49,7 +49,7 @@ public function display()
4949
$this->model->prune_comply($prune_from, $prune_sticky);
5050
}
5151

52-
$this->feather->view2->setPageInfo(array(
52+
$this->feather->template->setPageInfo(array(
5353
'title' => array(Utils::escape($this->feather->forum_settings['o_board_title']), __('Admin'), __('Prune')),
5454
'active_page' => 'admin',
5555
'admin_console' => true,
@@ -62,7 +62,7 @@ public function display()
6262

6363
\FeatherBB\AdminUtils::generateAdminMenu('maintenance');
6464

65-
$this->feather->view2->setPageInfo(array(
65+
$this->feather->template->setPageInfo(array(
6666
'title' => array(Utils::escape($this->feather->forum_settings['o_board_title']), __('Admin'), __('Maintenance')),
6767
'active_page' => 'admin',
6868
'admin_console' => true,

featherbb/Controller/Admin/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function display()
3737

3838
\FeatherBB\AdminUtils::generateAdminMenu('options');
3939

40-
$this->feather->view2->setPageInfo(array(
40+
$this->feather->template->setPageInfo(array(
4141
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Options')),
4242
'active_page' => 'admin',
4343
'admin_console' => true,

featherbb/Controller/Admin/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function display()
206206

207207
\FeatherBB\AdminUtils::generateAdminMenu('parser');
208208

209-
$this->feather->view2->setPageInfo(array(
209+
$this->feather->template->setPageInfo(array(
210210
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Parser')),
211211
'active_page' => 'admin',
212212
'admin_console' => true,

featherbb/Controller/Admin/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function display()
3838

3939
\FeatherBB\AdminUtils::generateAdminMenu('permissions');
4040

41-
$this->feather->view2->setPageInfo(array(
41+
$this->feather->template->setPageInfo(array(
4242
'title' => array(Utils::escape($this->config['o_board_title']), __('Admin'), __('Permissions')),
4343
'active_page' => 'admin',
4444
'admin_console' => true,

0 commit comments

Comments
 (0)