diff --git a/outputhtml.php b/outputhtml.php index 06244fd..e5a2f69 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -76,9 +76,11 @@ class outputhtml extends output @return string the Layout with variables interpreted */ private function layoutVariables ($layout, $variables) { + // The layout can be a external layout file or the HTML page itself. + // FIXME : Allow to manage variables in a layout provided in the variable, + // without eval use if (! file_exists ($layout)) - throw new Exception (sprintf (_("Layout File '%s' does not exists"), - $layout), 404); + return $layout; extract ($variables); ob_start(); require ($layout);