Last modified: 2013-10-16 14:05:00 UTC
(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.
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