Add a tracking category when a template loop is detected
[lhc/web/wiklou.git] / includes / parser / Parser.php
index 8db1fe3..47d9a62 100644 (file)
@@ -3257,6 +3257,7 @@ class Parser {
                                $text = '<span class="error">'
                                        . wfMessage( 'parser-template-loop-warning', $titleText )->inContentLanguage()->text()
                                        . '</span>';
+                               $this->addTrackingCategory( 'template-loop-category' );
                                wfDebug( __METHOD__ . ": template loop broken at '$titleText'\n" );
                        }
                }