X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fchanges%2FChangesList.php;h=5b8559e68ad618f1f1a50dae7a3c1ac80c548310;hb=0f078a2166f24ad3a097588cf11b145c85ee233c;hp=cac476929b3282f0224aa6f3487e59b433ccfea1;hpb=72e689e843b839a2eb5d5382301449c69c7e0587;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index cac476929b..5b8559e68a 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -182,9 +182,9 @@ class ChangesList extends ContextSource { $classes[] = self::CSS_CLASS_PREFIX . 'edit'; $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns' . $rc->mAttribs['rc_namespace'] . '-' . $rc->mAttribs['rc_title'] ); - $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns-' . - $rc->mAttribs['rc_namespace'] ); } + $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns-' . + $rc->mAttribs['rc_namespace'] ); // Indicate watched status on the line to allow for more // comprehensive styling. @@ -576,7 +576,9 @@ class ChangesList extends ContextSource { return ''; } $cache = $this->watchMsgCache; - return $cache->getWithSetCallback( $count, $cache::TTL_INDEFINITE, + return $cache->getWithSetCallback( + $cache->makeKey( 'watching-users-msg', $count ), + $cache::TTL_INDEFINITE, function () use ( $count ) { return $this->msg( 'number_of_watching_users_RCview' ) ->numParams( $count )->escaped();