Changed 'file' variable name to more appropriate 'name' variable.

This commit is contained in:
Justin Hileman
2010-03-30 14:00:10 -04:00
parent b8d4321e4a
commit 98422c110e
+5 -5
View File
@@ -57,15 +57,15 @@ class HandlebarMustache extends Mustache {
* A '.mustache' file extension is assumed if none is provided in $file.
*
* @access public
* @param string $file
* @param string $name
* @return void
*/
public function loadTemplate($file) {
if (strpos($file, '.') === false) {
$file .= '.mustache';
public function loadTemplate($name) {
if (strpos($name, '.') === false) {
$name .= '.mustache';
}
$filename = $this->templateBase . $file;
$filename = $this->templateBase . $name;
if (file_exists($filename)) {
$this->template = file_get_contents($filename);
} else {