From 5956d6d4a87ed17a6b34cbef7dfd12137e0d8906 Mon Sep 17 00:00:00 2001 From: mystralkk Date: Sat, 17 Aug 2019 20:34:27 +0900 Subject: [PATCH] Fixed a bug that occurred when plugin_autotags_xxx was called with $op argument being 'closetag' --- plugins/calendar/functions.inc | 2 ++ plugins/links/functions.inc | 2 ++ plugins/staticpages/functions.inc | 2 ++ 3 files changed, 6 insertions(+) diff --git a/plugins/calendar/functions.inc b/plugins/calendar/functions.inc index ce8c42e76..3f4be8a3a 100644 --- a/plugins/calendar/functions.inc +++ b/plugins/calendar/functions.inc @@ -1191,6 +1191,8 @@ function plugin_autotags_calendar($op, $content = '', $autotag = array()) } return $content; + } elseif ($op === 'closetag') { + return array(); } else { throw new InvalidArgumentException('Bad argument for "$op"'); } diff --git a/plugins/links/functions.inc b/plugins/links/functions.inc index b1817bc2f..518ec0cfb 100644 --- a/plugins/links/functions.inc +++ b/plugins/links/functions.inc @@ -251,6 +251,8 @@ function plugin_autotags_links($op, $content = '', $autotag = array()) } return $content; + } elseif ($op === 'closetag') { + return array(); } else { throw new InvalidArgumentException('Bad argument for "$op"'); } diff --git a/plugins/staticpages/functions.inc b/plugins/staticpages/functions.inc index f4912d102..c42b77d1b 100755 --- a/plugins/staticpages/functions.inc +++ b/plugins/staticpages/functions.inc @@ -1428,6 +1428,8 @@ function plugin_autotags_staticpages($op, $content = '', $autotag = array()) } return $content; + } elseif ($op === 'closetag') { + return array(); } else { throw new InvalidArgumentException('Bad argument for "$op"'); }