TemplateParser: Use operator short cut where necessary
authorDerick Alangi <alangiderick@gmail.com>
Thu, 11 Apr 2019 20:48:07 +0000 (21:48 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 11 Apr 2019 20:48:07 +0000 (21:48 +0100)
Change-Id: I7f9dbe54cec876863920155ccd7cd735a3101481

includes/TemplateParser.php

index 11a8e85..fd856be 100644 (file)
@@ -62,9 +62,9 @@ class TemplateParser {
         */
        public function enableRecursivePartials( $enable ) {
                if ( $enable ) {
         */
        public function enableRecursivePartials( $enable ) {
                if ( $enable ) {
-                       $this->compileFlags = $this->compileFlags | LightnCandy::FLAG_RUNTIMEPARTIAL;
+                       $this->compileFlags |= LightnCandy::FLAG_RUNTIMEPARTIAL;
                } else {
                } else {
-                       $this->compileFlags = $this->compileFlags & ~LightnCandy::FLAG_RUNTIMEPARTIAL;
+                       $this->compileFlags &= ~LightnCandy::FLAG_RUNTIMEPARTIAL;
                }
        }
 
                }
        }