From 293dd54f6453b58e73e0356cee5bb88d0e7bc213 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 24 Feb 2008 08:23:04 +0000 Subject: [PATCH] Removed custom title and method in favour of using defaults --- code/RSSWidget.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/RSSWidget.php b/code/RSSWidget.php index 56a2809..84ca5d3 100644 --- a/code/RSSWidget.php +++ b/code/RSSWidget.php @@ -2,22 +2,21 @@ class RSSWidget extends Widget { static $db = array( - "CustomTitle" => "Text", + "Title" => "Text", "RssUrl" => "Text", "NumberToShow" => "Int", ); static $defaults = array( - "NumberToShow" => 10 + "NumberToShow" => 10, + "Title" => 'RSS Feed' ); - - static $title = "RSS Feed"; static $cmsTitle = "RSS Feed"; static $description = "Shows the latest entries of a RSS feed."; function getCMSFields() { return new FieldSet( - new TextField("CustomTitle", _t('RSSWidget.CT', "Custom title for the feed")), + new TextField("Title", _t('RSSWidget.CT', "Custom title for the feed")), new TextField("RssUrl", _t('RSSWidget.URL', "URL of RSS Feed")), new NumericField("NumberToShow", _t('RSSWidget.NTS', "Number of Items to show")) );