FEATURE: move default Handler::render() into parent class
This commit is contained in:
@@ -28,11 +28,6 @@ class Gallery implements AppHandler
|
||||
*/
|
||||
public function render(Content $content, $parameters)
|
||||
{
|
||||
// if settings is still string, convert it into object
|
||||
if (is_string($content->module_settings)) {
|
||||
$content->module_settings = json_decode($content->module_settings);
|
||||
}
|
||||
|
||||
// get directory ID
|
||||
$directoryId = $content->module_settings->directoryId;
|
||||
|
||||
@@ -42,7 +37,11 @@ class Gallery implements AppHandler
|
||||
->get();
|
||||
|
||||
// render content
|
||||
return Controller::VisitorsView($content->template, ['images' => $images, 'page' => $content]);
|
||||
return Controller::VisitorsView($content->template, [
|
||||
'images' => $images,
|
||||
'page' => $content,
|
||||
'extra' => $parameters
|
||||
]);
|
||||
}
|
||||
|
||||
public static function getHistoryHandler()
|
||||
|
||||
Reference in New Issue
Block a user