diff --git a/ext/relationships/info.php b/ext/relationships/info.php index d5969ee3..541cc563 100644 --- a/ext/relationships/info.php +++ b/ext/relationships/info.php @@ -9,5 +9,4 @@ class RelationshipsInfo extends ExtensionInfo public $authors = ["Angus Johnston"=>"admin@codeanimu.net"]; public $license = self::LICENSE_GPLV2; public $description = "Allow posts to have relationships (parent/child)."; - //public $db_support = [DatabaseDriver::MYSQL, DatabaseDriver::PGSQL]; } diff --git a/ext/rss_comments/info.php b/ext/rss_comments/info.php index 3089b023..68697673 100644 --- a/ext/rss_comments/info.php +++ b/ext/rss_comments/info.php @@ -10,5 +10,4 @@ class RSSCommentsInfo extends ExtensionInfo public $authors = self::SHISH_AUTHOR; public $license = self::LICENSE_GPLV2; public $description = "Self explanatory"; - public $db_support = [DatabaseDriver::MYSQL, DatabaseDriver::SQLITE]; // pgsql has no UNIX_TIMESTAMP } diff --git a/ext/trash/info.php b/ext/trash/info.php index 47227d87..2223562b 100644 --- a/ext/trash/info.php +++ b/ext/trash/info.php @@ -9,5 +9,4 @@ class TrashInfo extends ExtensionInfo public $authors = ["Matthew Barbour"=>"matthew@darkholme.net"]; public $license = self::LICENSE_WTFPL; public $description = "Provides \"Trash\" or \"Recycle Bin\"-type functionality, storing delete images for later recovery"; - public $db_support = [DatabaseDriver::MYSQL, DatabaseDriver::PGSQL]; } diff --git a/ext/trash/main.php b/ext/trash/main.php index f979e932..d39ab965 100644 --- a/ext/trash/main.php +++ b/ext/trash/main.php @@ -13,6 +13,11 @@ class Trash extends Extension return 10; } + public function onInitExt(InitExtEvent $event) + { + Image::$bool_props[] = "trash"; + } + public function onPageRequest(PageRequestEvent $event) { global $page, $user; @@ -61,7 +66,6 @@ class Trash extends Extension } } - const SEARCH_REGEXP = "/^in:trash$/"; public function onSearchTermParse(SearchTermParseEvent $event) { @@ -96,7 +100,6 @@ class Trash extends Extension } } - private function no_trash_query(array $context): bool { foreach ($context as $term) {