Skip to content

Commit

Permalink
[Kernel] Fixes executable action in WView
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanDufau committed Oct 18, 2016
1 parent 39893b8 commit 95f1555
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/WCore/WRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ public static function getView($url, $extra_params = array(), $has_parent = true
$view = $controller->getView();

// Prepare the view
if (method_exists($view, $model['action'])) {
$view->{$model['action']}($model['result']);
$executable_action = preg_replace('#[^a-z_]#', '', $model['action']);
if (method_exists($view, $executable_action)) {
$view->$executable_action($model['result']);
}

// Infers template file
Expand Down

0 comments on commit 95f1555

Please sign in to comment.