Add wfProfileOut to the new returns added by 19ecb69f
authorPlatonides <platonides@gmail.com>
Tue, 2 Apr 2013 20:52:00 +0000 (22:52 +0200)
committerPlatonides <platonides@gmail.com>
Tue, 2 Apr 2013 20:52:00 +0000 (22:52 +0200)
Change-Id: I97def12da054db7204955b95c3d590a3ab24ba55

includes/specials/SpecialProtectedpages.php
includes/specials/SpecialProtectedtitles.php

index bc4f3bb..5927851 100644 (file)
@@ -84,6 +84,7 @@ class SpecialProtectedpages extends SpecialPage {
 
                $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title );
                if( !$title ) {
+                       wfProfileOut( __METHOD__ );
                        return Html::rawElement( 'li', array(),
                                Html::element( 'span', array( 'class' => 'mw-invalidtitle' ),
                                        Linker::getInvalidTitleDescription( $this->getContext(), $row->page_namespace, $row->page_title ) ) ) . "\n";
index a9d9cff..ab53bb5 100644 (file)
@@ -82,6 +82,7 @@ class SpecialProtectedtitles extends SpecialPage {
 
                $title = Title::makeTitleSafe( $row->pt_namespace, $row->pt_title );
                if( !$title ) {
+                       wfProfileOut( __METHOD__ );
                        return Html::rawElement( 'li', array(),
                                Html::element( 'span', array( 'class' => 'mw-invalidtitle' ),
                                        Linker::getInvalidTitleDescription( $this->getContext(), $row->pt_namespace, $row->pt_title ) ) ) . "\n";