trash and rss comments work with sqlite
This commit is contained in:
parent
0ec305a886
commit
5aa86963dd
4 changed files with 5 additions and 5 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in a new issue