]> git.mjollnir.org Git - s9y.git/commitdiff
Make title configurable
authorgarvinhicking <garvinhicking>
Wed, 11 Oct 2006 08:02:40 +0000 (08:02 +0000)
committergarvinhicking <garvinhicking>
Wed, 11 Oct 2006 08:02:40 +0000 (08:02 +0000)
include/plugin_internal.inc.php

index 9d46ac5af3c50c63c5ea90a6a23cf7d185addcee..bb40e1ac5b334cbb8bfee704d4f6ee5eb6718b2e 100644 (file)
@@ -661,8 +661,9 @@ class serendipity_syndication_plugin extends serendipity_plugin {
         $propbag->add('description',   SHOWS_RSS_BLAHBLAH);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Serendipity Team');
-        $propbag->add('version',       '1.2');
+        $propbag->add('version',       '1.3');
         $propbag->add('configuration', array(
+                                        'title',
                                         'fullfeed',
                                         'show_0.91',
                                         'show_1.0',
@@ -695,6 +696,13 @@ class serendipity_syndication_plugin extends serendipity_plugin {
     function introspect_config_item($name, &$propbag)
     {
         switch($name) {
+            case 'title':
+                $propbag->add('type',        'string');
+                $propbag->add('name',        TITLE);
+                $propbag->add('description', TITLE_FOR_NUGGET);
+                $propbag->add('default',     SYNDICATE_THIS_BLOG);
+                break;
+
             case 'fullfeed':
                 $radio['value'][] = 'false';
                 $radio['desc'][]  = NO;
@@ -880,7 +888,7 @@ class serendipity_syndication_plugin extends serendipity_plugin {
     {
         global $serendipity;
 
-        $title = $this->title;
+        $title = $this->get_config('title');
 
         if (serendipity_db_bool($this->get_config('show_0.91', true))) {
 ?>