1
0

[TASK] Adds ability to make plugins change the multi-media insertion gallery HTML

This commit is contained in:
Garvin Hicking
2019-12-03 15:50:51 +01:00
parent 4daa718362
commit cad25673cf
4 changed files with 113 additions and 74 deletions

View File

@ -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);
}
}