Jeremy D commited on 2012-01-23 19:34:58
Showing 5 changed files, with 13 additions and 3 deletions.
... | ... |
@@ -14,6 +14,7 @@ if (isset($_GET['sauce2'])) |
14 | 14 |
exit('</body></html>'); |
15 | 15 |
} |
16 | 16 |
|
17 |
+error_reporting(E_ALL); |
|
17 | 18 |
$_SERVER['REQUEST_URI'] = '/pastebin'; |
18 | 19 |
require_once('../wp-ssi.php'); |
19 | 20 |
$specialPage['noClear'] = true; |
... | ... |
@@ -467,7 +468,7 @@ class pB |
467 | 468 |
|
468 | 469 |
if (pBS::get('use_geshi') && !empty($paste['use_geshi'])) |
469 | 470 |
{ |
470 |
- $type = !empty($_REQUEST['type']) ? $_REQUEST['type'] : (!empty($paste['language']) ? $Paste['language'] : 'php'); |
|
471 |
+ $type = !empty($paste['language']) ? $paste['language'] : 'php'; |
|
471 | 472 |
|
472 | 473 |
include_once(pBS::get('geshi_location') . '/geshi.php'); |
473 | 474 |
|
... | ... |
@@ -149,7 +149,7 @@ class pDB_smf extends pDB |
149 | 149 |
|
150 | 150 |
// Options needed for our post. |
151 | 151 |
$topicOptions = array( |
152 |
- 'id' => (!empty($paste['id']) ? $topic['id'] : 0) , |
|
152 |
+ 'id' => (!empty($paste['id']) ? $paste['id'] : 0) , |
|
153 | 153 |
'board' => pBS::get('smf_paste_board'), |
154 | 154 |
'mark_as_read' => false, |
155 | 155 |
); |