fixes
This commit is contained in:
@ -62,9 +62,11 @@ abstract class Extension
|
|||||||
public static function determine_enabled_extensions(): void
|
public static function determine_enabled_extensions(): void
|
||||||
{
|
{
|
||||||
self::$enabled_extensions = [];
|
self::$enabled_extensions = [];
|
||||||
|
$extras = defined("EXTRA_EXTS") ? explode(",", EXTRA_EXTS) : [];
|
||||||
|
|
||||||
foreach (array_merge(
|
foreach (array_merge(
|
||||||
ExtensionInfo::get_core_extensions(),
|
ExtensionInfo::get_core_extensions(),
|
||||||
explode(",", EXTRA_EXTS)
|
$extras
|
||||||
) as $key) {
|
) as $key) {
|
||||||
$ext = ExtensionInfo::get_by_key($key);
|
$ext = ExtensionInfo::get_by_key($key);
|
||||||
if ($ext===null || !$ext->is_supported()) {
|
if ($ext===null || !$ext->is_supported()) {
|
||||||
@ -361,7 +363,7 @@ abstract class DataHandlerExtension extends Extension
|
|||||||
// Locked Stuff.
|
// Locked Stuff.
|
||||||
if (!empty($event->metadata['locked'])) {
|
if (!empty($event->metadata['locked'])) {
|
||||||
$locked = $event->metadata['locked'];
|
$locked = $event->metadata['locked'];
|
||||||
send_event(new LockSetEvent($image, !empty($locked)));
|
send_event(new LockSetEvent($image, $locked));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif ($supported_mime && !$check_contents) {
|
} elseif ($supported_mime && !$check_contents) {
|
||||||
|
@ -115,9 +115,6 @@ class Blotter extends Extension
|
|||||||
$this->theme->display_permission_denied();
|
$this->theme->display_permission_denied();
|
||||||
} else {
|
} else {
|
||||||
$id = int_escape($_POST['id']);
|
$id = int_escape($_POST['id']);
|
||||||
if (!isset($id)) {
|
|
||||||
die("No ID!");
|
|
||||||
}
|
|
||||||
$database->execute("DELETE FROM blotter WHERE id=:id", ["id"=>$id]);
|
$database->execute("DELETE FROM blotter WHERE id=:id", ["id"=>$id]);
|
||||||
log_info("blotter", "Removed Entry #$id");
|
log_info("blotter", "Removed Entry #$id");
|
||||||
$page->set_mode(PageMode::REDIRECT);
|
$page->set_mode(PageMode::REDIRECT);
|
||||||
|
@ -175,7 +175,7 @@ class BulkActions extends Extension
|
|||||||
if (empty($data)) {
|
if (empty($data)) {
|
||||||
throw new BulkActionException("No ids specified in bulk_selected_ids");
|
throw new BulkActionException("No ids specified in bulk_selected_ids");
|
||||||
}
|
}
|
||||||
if (is_array($data) && !empty($data)) {
|
if (is_array($data)) {
|
||||||
$items = $this->yield_items($data);
|
$items = $this->yield_items($data);
|
||||||
}
|
}
|
||||||
} elseif (isset($_POST['bulk_query']) && $_POST['bulk_query'] != "") {
|
} elseif (isset($_POST['bulk_query']) && $_POST['bulk_query'] != "") {
|
||||||
|
@ -112,7 +112,7 @@ class OuroborosPost extends _SafeOuroborosImage
|
|||||||
* Mainly just acts as a wrapper and validation layer
|
* Mainly just acts as a wrapper and validation layer
|
||||||
* @noinspection PhpMissingParentConstructorInspection
|
* @noinspection PhpMissingParentConstructorInspection
|
||||||
*/
|
*/
|
||||||
public function __construct(array $post, string $md5 = '')
|
public function __construct(array $post)
|
||||||
{
|
{
|
||||||
if (array_key_exists('tags', $post)) {
|
if (array_key_exists('tags', $post)) {
|
||||||
// implode(explode()) to resolve aliases and sanitise
|
// implode(explode()) to resolve aliases and sanitise
|
||||||
|
@ -162,7 +162,7 @@ class TagList extends Extension
|
|||||||
if (is_null($results)) {
|
if (is_null($results)) {
|
||||||
$tags = explode(" ", $tags_config);
|
$tags = explode(" ", $tags_config);
|
||||||
|
|
||||||
if (empty($tags)) {
|
if (count($tags) == 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user