Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_eventwrapper
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9112/plugins/serendipity_plugin_eventwrapper
Modified Files:
serendipity_plugin_eventwrapper.php
Log Message:
list="`find . -name \*.php`"
list="$list `find . -name \*.txt`"
perl -i -pe 's=^M==g' $list
cvs tag pre-control-m-removal
cvs commit
cvs tag post-control-m-removal
Index: serendipity_plugin_eventwrapper.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_eventwrapper/serendipity_plugin_eventwrapper.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- serendipity_plugin_eventwrapper.php 9 Feb 2004 15:14:21 -0000 1.1
+++ serendipity_plugin_eventwrapper.php 3 Apr 2004 17:36:18 -0000 1.2
@@ -51,7 +51,7 @@
}
}
- $propbag->add('type', 'select');
+ $propbag->add('type', 'select');
$propbag->add('name', PLUGIN_EVENT_WRAPPER_PLUGIN);
$propbag->add('description', PLUGIN_EVENT_WRAPPER_PLUGINDESC);
$propbag->add('select_values', $select);
@@ -62,7 +62,7 @@
$propbag->add('name', TITLE);
$propbag->add('description', PLUGIN_EVENT_WRAPPER_TITLEDESC);
break;
-
+
default:
return false;
}
@@ -72,19 +72,19 @@
function generate_content(&$title)
{
$bag = new serendipity_property_bag;
- $this->introspect($bag);
- $wrap = &serendipity_plugin_api::get_event_plugins($this->get_config('event_plugin'));
- $faketitle = '';
- if (is_object($wrap)) {
- $wrap->generate_content($faketitle);
- }
-
- if ($this->get_config('title') != '') {
- $title = $this->get_config('title');
+ $this->introspect($bag);
+ $wrap = &serendipity_plugin_api::get_event_plugins($this->get_config('event_plugin'));
+ $faketitle = '';
+ if (is_object($wrap)) {
+ $wrap->generate_content($faketitle);
+ }
+
+ if ($this->get_config('title') != '') {
+ $title = $this->get_config('title');
} else {
- $title = $faketitle;
+ $title = $faketitle;
}
- }
+ }
}
/* vim: set sts=4 ts=4 expandtab : */
|