From 7e3a7c1b9f4c76c31a739ccd7de60d99e69c7095 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 20 Aug 2008 08:40:37 +0000 Subject: [PATCH] * Profile a tad more * Code style tweak --- includes/SkinTemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index bbbcff0d58..3beb863b0c 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -432,6 +432,7 @@ class SkinTemplate extends Skin { } wfProfileOut( __METHOD__."-stuff4" ); + wfProfileIn( __METHOD__."-stuff5" ); # Personal toolbar $tpl->set('personal_urls', $this->buildPersonalUrls()); $content_actions = $this->buildContentActionUrls(); @@ -457,6 +458,7 @@ class SkinTemplate extends Skin { // allow extensions adding stuff after the page content. // See Skin::afterContentHook() for further documentation. $tpl->set ('dataAfterContent', $this->afterContentHook()); + wfProfileOut( __METHOD__."-stuff5" ); // execute template wfProfileIn( __METHOD__."-execute" ); @@ -714,7 +716,7 @@ class SkinTemplate extends Skin { 'href' => $this->mTitle->getLocalUrl( 'action=history') ); - if($wgUser->isAllowed('delete')){ + if( $wgUser->isAllowed('delete') ) { $content_actions['delete'] = array( 'class' => ($action == 'delete') ? 'selected' : false, 'text' => wfMsg('delete'), -- 2.20.1