Merge "jobqueue: clean up JobQueueDB::getCacheKey() to use makeGlobalKey()"
[lhc/web/wiklou.git] / includes / Title.php
index 5b0c3bc..de551b4 100644 (file)
@@ -2447,7 +2447,7 @@ class Title implements LinkTarget {
                # XXX: this might be better using restrictions
 
                if ( $action === 'patrol' ) {
-                       return [];
+                       return $errors;
                }
 
                if ( preg_match( '/^' . preg_quote( $user->getName(), '/' ) . '\//', $this->mTextform ) ) {