mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-05-21 01:44:12 +02:00
Replace killme() by exit()
This commit is contained in:
parent
9845edb8d9
commit
aa5fbb4994
7 changed files with 19 additions and 19 deletions
|
@ -89,7 +89,7 @@ function _randomAlphaNum($length){
|
|||
function widgets_content(&$a) {
|
||||
|
||||
if (!isset($_GET['k'])) {
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ function widgets_content(&$a) {
|
|||
DBA::escape($_GET['k'])
|
||||
);
|
||||
if (!count($r)){
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
|
||||
return;
|
||||
}
|
||||
$conf = [];
|
||||
|
@ -110,7 +110,7 @@ function widgets_content(&$a) {
|
|||
if (file_exists($widgetfile)){
|
||||
require_once($widgetfile);
|
||||
} else {
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); killme();}
|
||||
if($a->argv[2]=="cb"){header('HTTP/1.0 400 Bad Request'); exit();}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -176,5 +176,5 @@ function widgets_content(&$a) {
|
|||
}
|
||||
|
||||
echo $o;
|
||||
killme();
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue