Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20164/plugins/serendipity_event_creativecommons
Modified Files:
serendipity_event_creativecommons.php
Log Message:
* German translation fix
* Upgrader kills the current session for possible changes inside session
data on upgrade
* Fixed wrong comparison operator - bug reported by tom, where nl2br plugin
has "reversed" logic.
This is because (true != 'false') evaluates to true. Plugin config did not
evaluate radio values correctly.
* Fixed textile plugin not enabled by default after adding it as a plugin
* Comments plugin now correctly wordwraps
* Couple of linebreak fixes (*sigh*)
PLEASE TEST THE PLUGIN-STUFF! Needs to be verified working for rc2...
Index: serendipity_event_creativecommons.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_event_creativecommons.php 3 Apr 2004 17:19:34 -0000 1.4
+++ serendipity_event_creativecommons.php 13 Apr 2004 10:00:37 -0000 1.5
@@ -120,7 +120,7 @@
$eventData['display_dat'] .= '<a href="http://creativecommons.org/licenses/publicdomain">';
$eventData['display_dat'] .= '<img style="border: 0px" alt="No Rights Reserved" src="' . $serendipity['serendipityHTTPPath'] . 'pixel/norights.png" />';
$eventData['display_dat'] .= '</a>';
- if ($this->get_config('txt') != 'false') {
+ if (serendipity_db_bool($this->get_config('txt', true))) {
$eventData['display_dat'] .= '<br />' . str_replace('#license_uri#', $license_uri, PLUGIN_CREATIVECOMMONS_CAP_PD);
}
}
@@ -128,7 +128,7 @@
$eventData['display_dat'] .= '<a href="'.$license_uri.'">';
$eventData['display_dat'] .= '<img style="border: 0px" alt="Creative Commons License - Some Rights Reserved" src="' . $serendipity['serendipityHTTPPath'] . 'pixel/somerights.png" />';
$eventData['display_dat'] .= '</a>';
- if ($this->get_config('txt') != 'false') {
+ if (serendipity_db_bool($this->get_config('txt', true))) {
$eventData['display_dat'] .= '<br />' . str_replace('#license_uri#', $license_uri, PLUGIN_CREATIVECOMMONS_CAP);
}
}
@@ -183,7 +183,7 @@
function get_license_data() {
$license_type = array();
- if ($this->get_config('by') != 'false') {
+ if (serendipity_db_bool($this->get_config('by', true))) {
$license_type[] = 'by';
}
|