Make ImagePage#getThumbPrevText and ImagePage#makeSizeLink protected instead of private
authorJack Phoenix <ashley@uncyclomedia.co>
Thu, 21 Dec 2017 07:42:19 +0000 (09:42 +0200)
committerJack Phoenix <ashley@uncyclomedia.co>
Thu, 21 Dec 2017 07:42:19 +0000 (09:42 +0200)
commit741b09c1f4ed3ba8075d5c0f1d2e17cdbdc798a4
tree8179dbe6a9a26c1121b4cd46e7e4996d9e58fbc0
parenta84faa932f5a7b985b5c34e252918fc15d840ebe
Make ImagePage#getThumbPrevText and ImagePage#makeSizeLink protected instead of private

So that extensions wishing to modify ImagePage#openShowImage() that want
to preserve most of the existing functionality (at least in certain
contexts) do not have to copypaste these two methods over.
ImagePage#openShowImage() itself is ridiculously large and it's absurd
that to change a few things there you need to copy over the whole giant
block of code, but that's a separate matter.

Inspired by wikiHow's WikihowImagePage extension and their associated core
hacks to ImagePage.php, which hopefully won't be needed in the future.

Change-Id: Ic5e16acfc2cf4683154a60a3eaa9df69d30d03cb
includes/page/ImagePage.php