diff options
| author | lsces <lester@lsces.co.uk> | 2014-05-31 21:23:49 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-05-31 21:23:49 +0100 |
| commit | e183de9c4d97e670b850929c7ff1152fab01d6d1 (patch) | |
| tree | 5d201181d0058f961ed30d7566b8ea0ea2a92c0d /articles_rss.php | |
| parent | 4753d5552aa9cb66c3cdc10387d2a490d41f7a42 (diff) | |
| download | articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.tar.gz articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.tar.bz2 articles-e183de9c4d97e670b850929c7ff1152fab01d6d1.zip | |
PSR trial tidyup. Drop trailing ?> and tidy legacy bracing.
Diffstat (limited to 'articles_rss.php')
| -rw-r--r-- | articles_rss.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/articles_rss.php b/articles_rss.php index c1acbf9..ae3237d 100644 --- a/articles_rss.php +++ b/articles_rss.php @@ -10,7 +10,7 @@ */ // ensure that we use absolute URLs everywhere $_REQUEST['uri_mode'] = TRUE; -require_once( "../kernel/setup_inc.php" ); +require_once '../kernel/setup_inc.php'; $gBitSystem->verifyPackage( 'articles' ); $gBitSystem->verifyPackage( 'rss' ); @@ -53,7 +53,7 @@ if( !$gBitUser->hasPermission( 'p_articles_read' ) ) { $parseHash['data'] = preg_replace( LIBERTY_SPLIT_REGEX, "", $feed['data'] ); $item->description = $articles->parseData( $parseHash ); - $item->date = ( int )$feed['publish_date']; + $item->date = (int) $feed['publish_date']; $item->source = BIT_ROOT_URI; $item->author = $feed['author_name']; @@ -67,4 +67,3 @@ if( !$gBitUser->hasPermission( 'p_articles_read' ) ) { // finally we are ready to serve the data echo $rss->saveFeed( $rss_version_name, $cacheFile ); } -?> |
