https://bugzilla.wikimedia.org/show_bug.cgi?id=60023
--- Comment #2 from Sam Reed (reedy) <s...@reedyboy.net> --- (In reply to comment #0) > Nothing seems to use $wmgUseDualLicense, and all wikis are displaying the > licensing of just CC BY SA... The only thing in InitialiseSettings.php that changes is the following: 'wgRightsUrl' => array( 'default' => '//creativecommons.org/licenses/by-sa/3.0/', 'huwikinews' => '//creativecommons.org/licenses/by/3.0/', 'wikinews' => '//creativecommons.org/licenses/by/2.5/', ), 'wgRightsText' => array( 'default' => 'Creative Commons Attribution-Share Alike 3.0', 'huwikinews' => 'Creative Commons Attribution 3.0', 'wikinews' => 'Creative Commons Attribution 2.5', ), 'wgRightsIcon' => array( 'default' => '//creativecommons.org/images/public/somerights20.png', ), Then in CommonSettings.php // bug 44617 if ( in_array( $wgDBname, array( 'wikidatawiki', 'testwikidatawiki' ) ) ) { $wgHooks['SkinCopyrightFooter'][] = function( $title, $type, &$msg, &$link, &$forContent ) { if ( $title->getNamespace() === NS_MAIN ) { $msg = 'Creative Commons Public Domain 1.0'; $link = '//creativecommons.org/publicdomain/zero/1.0/'; } return true; }; } The only place any of these are modified further is in the WikimediaMessages extension. The code is/was a little hard to follow in it's current format. I've made it a bit simpler to read by putting things where they are used in https://gerrit.wikimedia.org/r/107281 and a bit more simplification in https://gerrit.wikimedia.org/r/107284 The code currently is now as such, it modifies the Skin Copyright Footer for all wikis bar huwikinews and any of the other wikinews projects (see $wgRightsUrl above) if( strpos( $wgRightsUrl, 'creativecommons.org/licenses/by-sa/3.0' ) !== false ) { // Override with Wikimedia's site-specific copyright message defaults // with the CC/GFDL semi-dual license fun! /** * @param $title Title * @param $type string * @param $msg string * @param $link * @param $forContent bool * @return bool */ $wgHooks['SkinCopyrightFooter'][] = function( $title, $type, &$msg, &$link, &$forContent ) { if( $type != 'history' ) { global $wgDBname; if ( in_array( $wgDBname, array( 'wikidatawiki', 'testwikidatawiki' ) ) ) { $msg = 'wikidata-copyright'; } else { $msg = 'wikimedia-copyright'; // the default; } $forContent = false; } return true; }; $wgHooks['EditPageCopyrightWarning'][] = function( $title, &$msg ) { $msg = array( 'wikimedia-copyrightwarning' ); return true; }; } wikimedia-copyright doesn't mention GFDL, but 'wikimedia-copyrightwarning' does. Neither of which respect $wmgUseDualLicense The Wikidata messages are fine, though, should probably be collapsed down to one set of config on the SkinCopyrightFooter hook. For the variance, the current 'wikimedia-copyright' and 'wikimedia-copyrightwarning' need normalising, and then a dual variant adding (or a singular depending on how current ones are changed) Config then updated to be something like if( strpos( $wgRightsUrl, 'creativecommons.org/licenses/by-sa/3.0' ) !== false ) { // Override with Wikimedia's site-specific copyright message defaults // with the CC/GFDL semi-dual license fun! /** * @param $title Title * @param $type string * @param $msg string * @param $link * @param $forContent bool * @return bool */ $wgHooks['SkinCopyrightFooter'][] = function( $title, $type, &$msg, &$link, &$forContent ) { if( $type != 'history' ) { global $wgDBname, $wmgUseDualLicense; if ( in_array( $wgDBname, array( 'wikidatawiki', 'testwikidatawiki' ) ) ) { $msg = 'wikidata-copyright'; } elseif ( $wmgUseDualLicense ) { $msg = array( 'wikimedia-copyright-dual' ); } else { $msg = array( 'wikimedia-copyright' ); } $forContent = false; } return true; }; $wgHooks['EditPageCopyrightWarning'][] = function( $title, &$msg ) { global $wmgUseDualLicense; if ( $wmgUseDualLicense ) { $msg = array( 'wikimedia-copyrightwarning-dual' ); } else { $msg = array( 'wikimedia-copyrightwarning' ); } return true; }; } -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l