This commit is contained in:
Shish 2020-01-26 16:38:13 +00:00
parent 6cc7124069
commit 60dda96fd2
6 changed files with 5 additions and 19 deletions

View file

@ -286,10 +286,6 @@ class Media extends Extension
$matches = [];
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;
}
}

View file

@ -390,8 +390,7 @@ class OuroborosAPI extends Extension
$this->sendResponse(403, 'You cannot create new posts');
}
} elseif ($this->match('update')) {
// Update
//@todo add post update
throw new SCoreException("update not implemented");
} elseif ($this->match('show')) {
// Show
$id = !empty($_REQUEST['id']) ? filter_var($_REQUEST['id'], FILTER_SANITIZE_NUMBER_INT) : null;

View file

@ -53,10 +53,7 @@ class SetupBlock extends Block
public function __construct(string $title)
{
$this->header = $title;
$this->section = "main";
$this->position = 50;
$this->body = "";
parent::__construct($title, "", "main", 50);
}
public function add_label(string $text)

View file

@ -301,10 +301,7 @@ class SourceHistory extends Extension
ORDER BY date_set DESC LIMIT 1
', $select_args);
if (empty($row)) {
// we can not revert this image based on the date restriction.
// Output a message perhaps?
} else {
if (!empty($row)) {
$revert_id = $row['id'];
$result = $this->get_source_history_from_revert($revert_id);

View file

@ -302,10 +302,7 @@ class TagHistory extends Extension
ORDER BY date_set DESC LIMIT 1
', $select_args);
if (empty($row)) {
// we can not revert this image based on the date restriction.
// Output a message perhaps?
} else {
if (!empty($row)) {
$revert_id = $row['id'];
$result = $this->get_tag_history_from_revert($revert_id);

View file

@ -430,7 +430,7 @@ class UserPage extends Extension
} elseif (is_null($my_user->email)) {
$this->theme->display_error(400, "Error", "That user has no registered email address");
} else {
// send email
throw new SCoreException("Email sending not implemented");
}
}