Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13005
Modified Files:
serendipity_event_creativecommons.php
Log Message:
Patch by Evan Nemerson <ev...@co...>.
Index: serendipity_event_creativecommons.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_event_creativecommons.php 2 Apr 2004 11:03:20 -0000 1.2
+++ serendipity_event_creativecommons.php 3 Apr 2004 07:55:51 -0000 1.3
@@ -187,19 +187,16 @@
$license_type[] = 'by';
}
+ if ($this->get_config('nd') == 'no') {
+ $license_type[] = 'nd';
+ }
+
if ($this->get_config('nc') == 'false') {
$license_type[] = 'nc';
}
- switch ($this->get_config('nd')) {
- case 'sa':
- $license_type[] = 'sa';
- break;
-
- case 'no':
- default:
- $license_type[] = 'nd';
- break;
+ if ($this->get_config('nd') == 'sa') {
+ $license_type[] = 'sa';
}
$license_string = implode('-', $license_type);
|