From 983a201d45c677926a91cb457aadbd326979aa96 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 2 Apr 2013 22:52:00 +0200 Subject: [PATCH] Add wfProfileOut to the new returns added by 19ecb69f Change-Id: I97def12da054db7204955b95c3d590a3ab24ba55 --- includes/specials/SpecialProtectedpages.php | 1 + includes/specials/SpecialProtectedtitles.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/specials/SpecialProtectedpages.php b/includes/specials/SpecialProtectedpages.php index bc4f3bb101..59278518a5 100644 --- a/includes/specials/SpecialProtectedpages.php +++ b/includes/specials/SpecialProtectedpages.php @@ -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"; diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index a9d9cfff10..ab53bb5d04 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -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"; -- 2.20.1