From: Aaron Schulz Date: Thu, 4 Dec 2014 00:01:26 +0000 (-0800) Subject: Use quickUserCan() for the undelete link message X-Git-Tag: 1.31.0-rc.0~13097^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=189d1ea6411de2078a97d8af4ef791cec5607776;p=lhc%2Fweb%2Fwiklou.git Use quickUserCan() for the undelete link message * This was taking 267.304ms on https://en.wikipedia.org/wiki/Tammar_wallaby for admins Change-Id: I0e669869e1990502331a80de168562421ac5336d --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 384aeda7bb..5604bc23cc 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -660,7 +660,7 @@ abstract class Skin extends ContextSource { $n = $this->getTitle()->isDeleted(); if ( $n ) { - if ( $this->getTitle()->userCan( 'undelete', $this->getUser() ) ) { + if ( $this->getTitle()->quickUserCan( 'undelete', $this->getUser() ) ) { $msg = 'thisisdeleted'; } else { $msg = 'viewdeleted';