Merge branch 'master' of github.com:vichan-devel/Tinyboard
This commit is contained in:
commit
c04b419639
@ -118,6 +118,7 @@ function error($message, $priority = true, $debug_stuff = false) {
|
||||
};
|
||||
|
||||
|
||||
if ($debug_stuff)
|
||||
$debug_stuff = array_filter($debug_stuff, $debug_callback);
|
||||
|
||||
die(Element('page.html', array(
|
||||
|
@ -23,7 +23,7 @@ $(function() {
|
||||
url: url,
|
||||
context: document.body,
|
||||
success: function(data) {
|
||||
var content = $(data).find('#'+url.split('#')[1]).next().html();
|
||||
var content = $(data).find('#'+url.split('#')[1]).next().next().html();
|
||||
|
||||
body.html(content);
|
||||
}
|
||||
|
2
post.php
2
post.php
@ -324,7 +324,7 @@ if (isset($_POST['delete'])) {
|
||||
curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
|
||||
|
||||
if (curl_exec($curl) === false)
|
||||
error($config['error']['nomove']);
|
||||
error($config['error']['nomove'] . '<br/>Curl says: ' . curl_error($curl));
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user