resourceloader: Omit non-existent messages in MessageBlobStore
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 17 Apr 2019 21:08:10 +0000 (22:08 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 19 Apr 2019 00:28:17 +0000 (00:28 +0000)
commit429c5acbfd6af393064f853fbc159fa5406d06e2
tree53782970288355c8cf6cb460d41531a500a9876d
parent64bd7a7e4b4ca39d74ffd3aeb03dfe7fc4114f33
resourceloader: Omit non-existent messages in MessageBlobStore

Previously, it was exporting the result of $msg->plain() regardless
of $msg->exists(). This meant that, client-side, via mw.message
the message would always make mw.Message#exists return true, even
if in fact it did not exist.

Bug: T221294
Change-Id: I77122777ddaaa2d43f8385df9292540a8d21b328
includes/resourceloader/MessageBlobStore.php
tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php