Skip to content

Commit 668785a

Browse files
committed
Merge pull request sisoftrg#6 from mixinternet/master
Changing extension as static access variable.
2 parents 1e1cd4a + 18e82e3 commit 668785a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Jade/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class Parser {
1010

1111
public $basepath;
12-
public $extension = '.jade';
12+
public static $extension = '.jade';
1313
public $textOnly = array('script','style');
1414

1515
protected $input;
@@ -249,7 +249,7 @@ protected function parseExtends() {
249249

250250
$file = $this->expect('extends')->value;
251251
$dir = realpath(dirname($this->filename));
252-
$path = $dir . DIRECTORY_SEPARATOR . $file . $this->extension;
252+
$path = $dir . DIRECTORY_SEPARATOR . $file . self::$extension;
253253

254254
$string = file_get_contents($path);
255255
$parser = new Parser($string, $path);

0 commit comments

Comments
 (0)