mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 01:19:40 +01:00
fix #529
This commit is contained in:
parent
42eb5c4744
commit
c5e1e3c6df
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user