Skip to content

Commit

Permalink
Fixed a bug that occurred when plugin_autotags_xxx was called with $o…
Browse files Browse the repository at this point in the history
…p argument being 'closetag'
  • Loading branch information
mystralkk committed Aug 17, 2019
1 parent 625c626 commit 5956d6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/calendar/functions.inc
Expand Up @@ -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"');
}
Expand Down
2 changes: 2 additions & 0 deletions plugins/links/functions.inc
Expand Up @@ -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"');
}
Expand Down
2 changes: 2 additions & 0 deletions plugins/staticpages/functions.inc
Expand Up @@ -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"');
}
Expand Down

0 comments on commit 5956d6d

Please sign in to comment.