Skip to content

Commit d06546d

Browse files
committed
Fix namespace prepending
1 parent 479a424 commit d06546d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

controller/main.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function handle()
148148
return $response;
149149
}
150150

151-
return $this->helper->render('@phpbbde/pastebin_pastebin_body.html', $this->language->lang('PASTEBIN'));
151+
return $this->helper->render('@phpbbde_pastebin/pastebin_body.html', $this->language->lang('PASTEBIN'));
152152
}
153153

154154
/**
@@ -168,7 +168,7 @@ private function display_pb()
168168
$sql = $this->db->sql_build_query('SELECT', array(
169169
'SELECT' => 'pb.*, u.user_id, u.username, u.user_colour',
170170
'FROM' => array(
171-
$this->table('pastebin') => 'pb',
171+
$this->pastebin_table => 'pb',
172172
USERS_TABLE => 'u',
173173
),
174174
'WHERE' => "pb.snippet_author = u.user_id AND pb.snippet_id = $snippet_id",
@@ -202,7 +202,7 @@ private function display_pb()
202202
$sql = $this->db->sql_build_query('SELECT', array(
203203
'SELECT' => 'pb.snippet_id, pb.snippet_time, pb.snippet_title, pb.snippet_desc, u.user_id, u.username, u.user_colour',
204204
'FROM' => array(
205-
$this->table('pastebin') => 'pb',
205+
$this->pastebin_table => 'pb',
206206
USERS_TABLE => 'u',
207207
),
208208
'WHERE' => 'pb.snippet_author = u.user_id',
@@ -364,7 +364,7 @@ private function display_pb()
364364
'snippet_prune_on' => time() + $this::SECONDS_MONTH * $data['snippet_prune_on'],
365365
);
366366

367-
$sql = 'INSERT INTO ' . $this->table('pastebin') . ' ' . $this->db->sql_build_array('INSERT', $sql_ary);
367+
$sql = 'INSERT INTO ' . $this->pastebin_table . ' ' . $this->db->sql_build_array('INSERT', $sql_ary);
368368
$this->db->sql_query($sql);
369369

370370
$snippet_id = $this->db->sql_nextid();

styles/prosilver/template/pastebin_body.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ <h3>{{ lang('MODERATE_SNIPPET') }}</h3>
5151

5252
<div id="content">
5353
{% if S_MODE eq 'view' %}
54-
{% INCLUDE '@phpbbde/pastebin_pastebin_view.html' %}
54+
{% INCLUDE '@phpbbde_pastebin/pastebin_view.html' %}
5555
{% else %}
56-
{% INCLUDE '@phpbbde/pastebin_pastebin_post.html' %}
56+
{% INCLUDE '@phpbbde_pastebin/pastebin_post.html' %}
5757
{% endif %}
5858
</div>
5959

0 commit comments

Comments
 (0)