[TASK] Adds ability to make plugins change the multi-media insertion gallery HTML
This commit is contained in:
@ -551,7 +551,11 @@ function serendipity_smarty_hookPlugin($params, $smarty) {
|
||||
}
|
||||
|
||||
if (!isset($params['data'])) {
|
||||
$params['data'] = &$serendipity;
|
||||
if (isset($params['eventData'])) {
|
||||
$params['data'] = &$params['eventData'];
|
||||
} else {
|
||||
$params['data'] = &$serendipity;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($params['addData'])) {
|
||||
@ -1225,4 +1229,4 @@ function serendipity_smarty_show($template, $data = null, $debugtype = null, $de
|
||||
}
|
||||
|
||||
return $debug . $serendipity['smarty']->fetch('file:'. $tplfile);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user