fix #529
This commit is contained in:
+22
-22
@@ -188,28 +188,6 @@ class HyperDown
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $type
|
||||
* @param $value
|
||||
* @return mixed
|
||||
*/
|
||||
private function call($type, $value)
|
||||
{
|
||||
if (empty($this->_hooks[$type])) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
$args = func_get_args();
|
||||
$args = array_slice($args, 1);
|
||||
|
||||
foreach ($this->_hooks[$type] as $callback) {
|
||||
$value = call_user_func_array($callback, $args);
|
||||
$args[0] = $value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $text
|
||||
* @param $clearHolders
|
||||
@@ -230,6 +208,28 @@ class HyperDown
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $type
|
||||
* @param $value
|
||||
* @return mixed
|
||||
*/
|
||||
public function call($type, $value)
|
||||
{
|
||||
if (empty($this->_hooks[$type])) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
$args = func_get_args();
|
||||
$args = array_slice($args, 1);
|
||||
|
||||
foreach ($this->_hooks[$type] as $callback) {
|
||||
$value = call_user_func_array($callback, $args);
|
||||
$args[0] = $value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* parseInline
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user