Exemplo n.º 1
0
 function compileTemplate($template, $ignore)
 {
     $tp = new CBTProcessor($template, $this, $ignore);
     $tp->mFunctionCache = $this->mFunctionCache;
     $this->mCompiling = true;
     $compiled = $tp->compile();
     $this->mCompiling = false;
     if ($tp->getLastError()) {
         // If there was a compile error, don't save the template
         // Instead just print the error and exit
         echo $compiled;
         wfErrorExit();
     }
     $this->mFunctionCache = $tp->mFunctionCache;
     return $compiled;
 }