+ // URLs should be set for cc license
+
+ if ($values['license']['type'] == 'cc') {
+ if (!common_valid_http_url($values['license']['url'])) {
+ // TRANS: Client error displayed specifying an invalid license URL in the license admin panel.
+ $this->clientError(_('Invalid license URL.'));
+ }
+ if (!common_valid_http_url($values['license']['image'])) {
+ // TRANS: Client error displayed specifying an invalid license image URL in the license admin panel.
+ $this->clientError(_('Invalid license image URL.'));
+ }
+ }