This commit is contained in:
Shish
2020-01-26 16:38:26 +00:00
parent 60dda96fd2
commit 3631084afd
25 changed files with 105 additions and 55 deletions

View File

@ -188,7 +188,9 @@ class Notes extends Extension
*/
public function onSearchTermParse(SearchTermParseEvent $event)
{
if(is_null($event->term)) return;
if (is_null($event->term)) {
return;
}
$matches = [];
if (preg_match("/^note[=|:](.*)$/i", $event->term, $matches)) {