Changeset View
Changeset View
Standalone View
Standalone View
config/CommonSettings.php
Show All 24 Lines | private static function getRightsSettings (array $licenses) : array { | ||||
foreach ($licenses as $key => $license) { | foreach ($licenses as $key => $license) { | ||||
switch ($license) { | switch ($license) { | ||||
case 'CC-BY 4.0': | case 'CC-BY 4.0': | ||||
$settings['wgRightsUrl'][$key] = 'http://creativecommons.org/licenses/by/4.0/'; | $settings['wgRightsUrl'][$key] = 'http://creativecommons.org/licenses/by/4.0/'; | ||||
$settings['wgRightsText'][$key] = 'Creative Commons Attribution 4.0 International License'; | $settings['wgRightsText'][$key] = 'Creative Commons Attribution 4.0 International License'; | ||||
$settings['wgRightsIcon'][$key] = 'https://i.creativecommons.org/l/by/4.0/88x31.png'; | $settings['wgRightsIcon'][$key] = 'https://i.creativecommons.org/l/by/4.0/88x31.png'; | ||||
break; | break; | ||||
case 'CC-BY-NC-SA 3.0': | |||||
$settings['wgRightsUrl'][$key] = 'https://creativecommons.org/licenses/by-nc-sa/3.0/'; | |||||
$settings['wgRightsText'][$key] = 'Attribution-NonCommercial-ShareAlike 3.0 Unported'; | |||||
$settings['wgRightsIcon'][$key] = 'https://licensebuttons.net/l/by-nc-sa/3.0/88x31.png'; | |||||
break; | |||||
default: | default: | ||||
throw new ConfigurationException("License unknown: $license"); | throw new ConfigurationException("License unknown: $license"); | ||||
} | } | ||||
} | } | ||||
return $settings; | return $settings; | ||||
} | } | ||||
private static function getUrlSettings (array $schemes) : array { | private static function getUrlSettings (array $schemes) : array { | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator