]> git.mjollnir.org Git - s9y.git/commitdiff
Update creativecommens license to 2.5, thanks to Christian Dröge!
authorgarvinhicking <garvinhicking>
Tue, 25 Oct 2005 10:03:27 +0000 (10:03 +0000)
committergarvinhicking <garvinhicking>
Tue, 25 Oct 2005 10:03:27 +0000 (10:03 +0000)
plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php

index 7d88331c3e18bdbd1d883d47a11f9dfb6a7bdc5e..9988cfded7dee61d410fc38729f1bb6b6d090749 100644 (file)
@@ -201,12 +201,12 @@ class serendipity_event_creativecommons extends serendipity_event {
         $license_type = array();
         $license_version = $this->get_config('cc_version', '1.0');
 
-        if ( ($license_version < 2.0) && ($this->get_config('cc_v2', 'false') == 'true') ) {
-          $this->set_config('cc_version', '2.0');
-          $license_version = '2.0';
+        if ( ($license_version < 2.5) && ($this->get_config('cc_v2', 'false') == 'true') ) {
+          $this->set_config('cc_version', '2.5');
+          $license_version = '2.5';
         }
 
-        if (($license_version >= 2.0) || serendipity_db_bool($this->get_config('by', true))) {
+        if (($license_version >= 2.5) || serendipity_db_bool($this->get_config('by', true))) {
             $license_type[] = 'by';
         }