This commit is contained in:
Mike Macgirvin 2022-09-27 05:42:54 +10:00
parent 496a3eec22
commit b35001af59
2 changed files with 4 additions and 11 deletions

View file

@ -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;
}

View file

@ -111,7 +111,7 @@ class Setup extends Controller
$adminmail = trim($_POST['adminmail']);
$siteurl = trim($_POST['siteurl']);
$sitename = trim($_POST['sitename']);
if ($siteurl != z_root()) {
$test = Url::get($siteurl . '/setup/testrewrite');
if ((!$test['success']) || ($test['body'] !== 'ok')) {
@ -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);