Page MenuHomePhabricator

Add copyright notice to special page
Closed, ResolvedPublic

Description

(From bug 52723 comment 54)

One more thing - we'll need to add standard licensing/ToS language to the
submit screen to ensure content is licensed consistent with Wikimedia
requirements. The wikimedia-copyrightwarning message in the WikimediaMessages
extension should do the trick.

Need to look into how other extensions use the standard copyright notice and override with the WMF-specific one.


Version: unspecified
Severity: normal

Details

Reference
bz54982

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:12 AM
bzimport added a project: MassMessage.
bzimport set Reference to bz54982.
Legoktm created this task.Oct 4 2013, 5:15 PM

Looking at https://github.com/wikimedia/mediawiki-extensions-WikimediaMessages/blob/master/WikimediaMessages.php, we just need to do something like:

$title = Title::newFromText('Special:MassMessage');
$msg = array( 'copyrightwarning' );
wfRunHooks( 'EditPageCopyrightWarning', array( $title, &$msg ) );

The relevant function is EditPage::getCopyrightWarning(), the messages
shouldn't be used directly.

Change 87646 had a related patch set uploaded by Legoktm:
Add EditPage::getCopyrightWarning before "Send" button

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

(In reply to comment #2)

The relevant function is EditPage::getCopyrightWarning(), the messages
shouldn't be used directly.

Thanks, that made it a bit easier :D

Change 87646 merged by jenkins-bot:
Add EditPage::getCopyrightWarning before "Send" button

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