Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/125962

Change subject: Alphanumeric is now the commonly no-conversion-needed format
......................................................................

Alphanumeric is now the commonly no-conversion-needed format

Change-Id: Icf696da3abaeb7bc824297c5f4396ad18bba3944
---
M includes/Collection/CollectionCache.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/62/125962/1

diff --git a/includes/Collection/CollectionCache.php 
b/includes/Collection/CollectionCache.php
index 9ecf5e3..9436bfb 100644
--- a/includes/Collection/CollectionCache.php
+++ b/includes/Collection/CollectionCache.php
@@ -35,7 +35,7 @@
         * @return AbstractRevision the last revision
         */
        public function getLastRevisionFor( AbstractRevision $revision ) {
-               $key = $revision->getCollectionId()->getBinary();
+               $key = $revision->getCollectionId()->getAlphadecimal();
                $lastRevision = $this->lastRevCache->get( $key );
                if ( $lastRevision === null ) {
                        $lastRevision = 
$revision->getCollection()->getLastRevision();
@@ -49,19 +49,19 @@
 
        public function onAfterInsert( $object, array $new ) {
                if ( $object instanceof AbstractRevision ) {
-                       $this->lastRevCache->clear( 
$object->getCollectionId()->getBinary() );
+                       $this->lastRevCache->clear( 
$object->getCollectionId()->getAlphadecimal() );
                }
        }
 
        public function onAfterUpdate( $object, array $old, array $new ) {
                if ( $object instanceof AbstractRevision ) {
-                       $this->lastRevCache->clear( 
$object->getCollectionId()->getBinary() );
+                       $this->lastRevCache->clear( 
$object->getCollectionId()->getAlphadecimal() );
                }
        }
 
        public function onAfterRemove( $object, array $old ) {
                if ( $object instanceof AbstractRevision ) {
-                       $this->lastRevCache->clear( 
$object->getCollectionId()->getBinary() );
+                       $this->lastRevCache->clear( 
$object->getCollectionId()->getAlphadecimal() );
                }
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/125962
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf696da3abaeb7bc824297c5f4396ad18bba3944
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to