mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
cleanup
This commit is contained in:
parent
496a3eec22
commit
b35001af59
2 changed files with 4 additions and 11 deletions
|
@ -47,9 +47,6 @@ require_once('include/attach.php');
|
|||
require_once('include/bbcode.php');
|
||||
require_once('include/security.php');
|
||||
|
||||
|
||||
use Code\Lib as Zlib;
|
||||
|
||||
class Item extends Controller
|
||||
{
|
||||
|
||||
|
@ -1451,7 +1448,6 @@ class Item extends Controller
|
|||
$datarray['attach'] = $attachments;
|
||||
$datarray['thr_parent'] = $thr_parent;
|
||||
$datarray['postopts'] = $postopts;
|
||||
$datarray['item_unseen'] = intval($item_unseen);
|
||||
$datarray['item_wall'] = intval($item_wall);
|
||||
$datarray['item_origin'] = intval($item_origin);
|
||||
$datarray['item_type'] = $webpage;
|
||||
|
@ -1598,7 +1594,7 @@ class Item extends Controller
|
|||
}
|
||||
|
||||
if (intval($datarray['item_unpublished'])) {
|
||||
$draft_msg = t('Draft saved. Use <a href="stream?draft=1">Drafts</a> app to continue editing.');
|
||||
$draft_msg = t('Draft saved. Use <a href="/stream?draft=1">Drafts</a> app to continue editing.');
|
||||
}
|
||||
|
||||
if ($orig_post) {
|
||||
|
@ -1905,7 +1901,7 @@ class Item extends Controller
|
|||
|
||||
if ($complex) {
|
||||
tag_deliver($i[0]['uid'], $i[0]['id']);
|
||||
if (intval($i[0]['item_wall']) && $complex) {
|
||||
if (intval($i[0]['item_wall'])) {
|
||||
Run::Summon(['Notifier', 'drop', $i[0]['id']]);
|
||||
}
|
||||
}
|
||||
|
@ -1959,9 +1955,6 @@ class Item extends Controller
|
|||
|
||||
public function extract_bb_poll_data(&$body, $item)
|
||||
{
|
||||
|
||||
$multiple = false;
|
||||
|
||||
if (!str_contains($body, '[/question]') && !str_contains($body, '[/answer]')) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -409,7 +409,7 @@ class Setup extends Controller
|
|||
$phpath = '';
|
||||
}
|
||||
|
||||
$this->check_add($checks, t('Command line PHP') . ($passed ? " (<tt>$phpath</tt>)" : EMPTY_STR), $passed, false, $help);
|
||||
$this->check_add($checks, t('Command line PHP') . ($passed ? " ($phpath)" : EMPTY_STR), $passed, false, $help);
|
||||
|
||||
if ($passed) {
|
||||
$str = autoname(8);
|
||||
|
|
Loading…
Reference in a new issue