예제 #1
0
 /**
  * Check for __NOWYSIWYG__ magic word inside transcluded templates (RT #24167) -  and add edgecase if needed
  *
  * Note: hook Parser::FetchTemplateAndTitle is not called when doing RTE parsing
  */
 public static function fetchTemplate($text, $finalTitle)
 {
     wfProfileIn(__METHOD__);
     RTE::log(__METHOD__, $finalTitle);
     if (self::searchForMagicWord($text)) {
         RTE::log('__NOWYSIWYG__ found inside ' . $finalTitle);
         RTE::edgeCasesPush('NOWYSIWYG');
     }
     wfProfileOut(__METHOD__);
     return true;
 }