Show copyright based on $output->hasCopyright()
authorStephane Bisson <sbisson@wikimedia.org>
Wed, 3 Oct 2018 13:12:37 +0000 (09:12 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Wed, 3 Oct 2018 15:54:16 +0000 (11:54 -0400)
commit8ebdf0242110aa83302563f59d173d8502c6353a
tree3be37340266866f7b7afaeb4a6796891980e282f
parent50944a14108e15ffdf9bcaa0148a0e7790a5f2a9
Show copyright based on $output->hasCopyright()

Introducing setCopyright/hasCopyright in OutputPage to
make the showing of the copyright message controllable
by pages other than articles.

hasCopyright defaults to isArticle() to preserve the rule
that all article should show the copyright.

This is used by Flow to show the copyright
on various pages that contain user-generated
content.

Bug: T184960
Change-Id: I3a50dbcedc6b119b9262c50cb3a84b0dd230fb3d
includes/OutputPage.php
includes/skins/SkinTemplate.php