1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Plugin API - Filters - Closure support added.

This commit is contained in:
Sergey Romanenko
2014-01-29 15:34:58 +02:00
parent 1e3689204e
commit 97dc6a8f69

View File

@@ -91,7 +91,7 @@ class Filter
* </code>
*
* @param string $filter_name The name of the filter to hook the $function_to_add to.
* @param string $function_to_add The name of the function to be called when the filter is applied.
* @param mixed $function_to_add The name of the function to be called when the filter is applied.
* @param integer $priority Function to add priority - default is 10.
* @param integer $accepted_args The number of arguments the function accept default is 1.
* @return boolean
@@ -100,7 +100,7 @@ class Filter
{
// Redefine arguments
$filter_name = (string) $filter_name;
$function_to_add = (string) $function_to_add;
$function_to_add = $function_to_add;
$priority = (int) $priority;
$accepted_args = (int) $accepted_args;