Skip to content

Commit

Permalink
Added default interface to the smarty plugin function cmd, if it's no…
Browse files Browse the repository at this point in the history
…t explicit defined.
  • Loading branch information
PSF1 committed Dec 22, 2016
1 parent e51e0d4 commit a4f995a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/smarty/libs/plugins/function.cmd.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function smarty_function_cmd($params, &$smarty) {
unset($params['command']); unset($params['command']);


if (!isset($params['interface']) || $params["interface"] == "1" || $params["interface"] == "echoHtml") { if (!isset($params['interface']) || $params["interface"] == "1" || $params["interface"] == "echoHtml") {
unset($params['interface']); $params["interface"] = "echoHtml";
ob_start(); ob_start();
driverCommand::run($command, $params); driverCommand::run($command, $params);
$output = ob_get_clean(); $output = ob_get_clean();
Expand Down

0 comments on commit a4f995a

Please sign in to comment.