869ee77d by Chris Boden

Updated shortcode file to act like a View

1 parent 927f7552
......@@ -33,11 +33,14 @@ function add_shortcodes($class) {
}
}
function getFileContents($file) {
function getFileContents($file, Array $args = Array()) {
if (!is_file($file)) {
throw new Exception("$file not found");
throw new Exception("{$file} not found");
}
extract($args);
unset($args);
ob_start();
require($file);
$parsed_contents = ob_get_contents();
......