diff options
Diffstat (limited to 'includes/parser/Preprocessor_HipHop.hphp')
-rw-r--r-- | includes/parser/Preprocessor_HipHop.hphp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/includes/parser/Preprocessor_HipHop.hphp b/includes/parser/Preprocessor_HipHop.hphp index dc404f7c..f5af0154 100644 --- a/includes/parser/Preprocessor_HipHop.hphp +++ b/includes/parser/Preprocessor_HipHop.hphp @@ -260,8 +260,8 @@ class Preprocessor_HipHop implements Preprocessor { if ( $found === 'angle' ) { $matches = false; // Handle </onlyinclude> - if ( $enableOnlyinclude - && substr( $text, $i, strlen( '</onlyinclude>' ) ) === '</onlyinclude>' ) + if ( $enableOnlyinclude + && substr( $text, $i, strlen( '</onlyinclude>' ) ) === '</onlyinclude>' ) { $findOnlyinclude = true; continue; @@ -362,7 +362,7 @@ class Preprocessor_HipHop implements Preprocessor { } $tagStartPos = $i; - $inner = $close = ''; + $close = ''; if ( $text[$tagEndPos-1] === '/' ) { // Short end tag $attrEnd = $tagEndPos - 1; @@ -1008,7 +1008,6 @@ class PPFrame_HipHop implements PPFrame { */ var $depth; - /** * Construct a new preprocessor frame. * @param $preprocessor Preprocessor: the parent preprocessor @@ -1426,6 +1425,15 @@ class PPFrame_HipHop implements PPFrame { function isTemplate() { return false; } + + /** + * Get a title of frame + * + * @return Title + */ + function getTitle() { + return $this->title; + } } /** |