nits
This commit is contained in:
parent
6cc7124069
commit
60dda96fd2
@ -286,10 +286,6 @@ class Media extends Extension
|
|||||||
$matches = [];
|
$matches = [];
|
||||||
|
|
||||||
if (preg_match(self::CONTENT_SEARCH_TERM_REGEX, strtolower($event->term), $matches) && $event->parse) {
|
if (preg_match(self::CONTENT_SEARCH_TERM_REGEX, strtolower($event->term), $matches) && $event->parse) {
|
||||||
// Nothing to save, just helping filter out reserved tags
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($matches)) {
|
|
||||||
$event->metatag = true;
|
$event->metatag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -390,8 +390,7 @@ class OuroborosAPI extends Extension
|
|||||||
$this->sendResponse(403, 'You cannot create new posts');
|
$this->sendResponse(403, 'You cannot create new posts');
|
||||||
}
|
}
|
||||||
} elseif ($this->match('update')) {
|
} elseif ($this->match('update')) {
|
||||||
// Update
|
throw new SCoreException("update not implemented");
|
||||||
//@todo add post update
|
|
||||||
} elseif ($this->match('show')) {
|
} elseif ($this->match('show')) {
|
||||||
// Show
|
// Show
|
||||||
$id = !empty($_REQUEST['id']) ? filter_var($_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT) : null;
|
$id = !empty($_REQUEST['id']) ? filter_var($_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT) : null;
|
||||||
|
@ -53,10 +53,7 @@ class SetupBlock extends Block
|
|||||||
|
|
||||||
public function __construct(string $title)
|
public function __construct(string $title)
|
||||||
{
|
{
|
||||||
$this->header = $title;
|
parent::__construct($title, "", "main", 50);
|
||||||
$this->section = "main";
|
|
||||||
$this->position = 50;
|
|
||||||
$this->body = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add_label(string $text)
|
public function add_label(string $text)
|
||||||
|
@ -301,10 +301,7 @@ class SourceHistory extends Extension
|
|||||||
ORDER BY date_set DESC LIMIT 1
|
ORDER BY date_set DESC LIMIT 1
|
||||||
', $select_args);
|
', $select_args);
|
||||||
|
|
||||||
if (empty($row)) {
|
if (!empty($row)) {
|
||||||
// we can not revert this image based on the date restriction.
|
|
||||||
// Output a message perhaps?
|
|
||||||
} else {
|
|
||||||
$revert_id = $row['id'];
|
$revert_id = $row['id'];
|
||||||
$result = $this->get_source_history_from_revert($revert_id);
|
$result = $this->get_source_history_from_revert($revert_id);
|
||||||
|
|
||||||
|
@ -302,10 +302,7 @@ class TagHistory extends Extension
|
|||||||
ORDER BY date_set DESC LIMIT 1
|
ORDER BY date_set DESC LIMIT 1
|
||||||
', $select_args);
|
', $select_args);
|
||||||
|
|
||||||
if (empty($row)) {
|
if (!empty($row)) {
|
||||||
// we can not revert this image based on the date restriction.
|
|
||||||
// Output a message perhaps?
|
|
||||||
} else {
|
|
||||||
$revert_id = $row['id'];
|
$revert_id = $row['id'];
|
||||||
$result = $this->get_tag_history_from_revert($revert_id);
|
$result = $this->get_tag_history_from_revert($revert_id);
|
||||||
|
|
||||||
|
@ -430,7 +430,7 @@ class UserPage extends Extension
|
|||||||
} elseif (is_null($my_user->email)) {
|
} elseif (is_null($my_user->email)) {
|
||||||
$this->theme->display_error(400, "Error", "That user has no registered email address");
|
$this->theme->display_error(400, "Error", "That user has no registered email address");
|
||||||
} else {
|
} else {
|
||||||
// send email
|
throw new SCoreException("Email sending not implemented");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user