Permalink
Browse files

Added default interface to the smarty plugin function cmd, if it's no…

…t explicit defined.
  • Loading branch information...
1 parent e51e0d4 commit a4f995a3e3508336e3fd49041dc020d5cf5ed1b1 @PSF1 committed Dec 22, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 etc/smarty/libs/plugins/function.cmd.php
@@ -50,7 +50,7 @@ function smarty_function_cmd($params, &$smarty) {
unset($params['command']);
if (!isset($params['interface']) || $params["interface"] == "1" || $params["interface"] == "echoHtml") {
- unset($params['interface']);
+ $params["interface"] = "echoHtml";
ob_start();
driverCommand::run($command, $params);
$output = ob_get_clean();

0 comments on commit a4f995a

Please sign in to comment.