X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=c2cd8122d6682a9492bd1086921e4b88edb83a65;hb=cd73babf22a135f63ef3403283e4243f2b9c1323;hp=7cc542579c756886aca7607d292732971dbfc7c6;hpb=2721bc43dfc1ea6a3af678c63bdd3a06b2795cc2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 7cc542579c..c2cd8122d6 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -711,7 +711,7 @@ class ContribsPager extends ReverseChronologicalPager { /** * This method basically executes the exact same code as the parent class, though with - * a hook added, to allow extentions to add additional queries. + * a hook added, to allow extensions to add additional queries. * * @param string $offset Index offset, inclusive * @param int $limit Exact query limit @@ -954,7 +954,6 @@ class ContribsPager extends ReverseChronologicalPager { * @return string */ function formatRow( $row ) { - wfProfileIn( __METHOD__ ); $ret = ''; $classes = array(); @@ -970,7 +969,7 @@ class ContribsPager extends ReverseChronologicalPager { try { $rev = new Revision( $row ); $validRevision = (bool)$rev->getId(); - } catch ( MWException $e ) { + } catch ( Exception $e ) { $validRevision = false; } wfRestoreWarnings(); @@ -1118,8 +1117,6 @@ class ContribsPager extends ReverseChronologicalPager { $ret = Html::rawElement( 'li', array( 'class' => $classes ), $ret ) . "\n"; } - wfProfileOut( __METHOD__ ); - return $ret; }