From b28a44ce2e21c89b176316149bfcafb4473f3bed Mon Sep 17 00:00:00 2001 From: rurban Date: Sat, 6 Aug 2005 13:06:22 +0000 Subject: [PATCH] only cosmetics git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4750 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 3 ++- lib/RSSWriter091.php | 58 +++++++++++++++++++++----------------------- lib/prepend.php | 6 ++--- 3 files changed, 32 insertions(+), 35 deletions(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index d59564481..8ea59e901 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -1,5 +1,5 @@ * Copyright (C) 2004, 2005 $ThePhpWikiProgrammingTeam * @@ -480,6 +480,7 @@ class Cached_UserLink extends Cached_WikiLink { } class Cached_PluginInvocation extends Cached_DynamicContent { + function Cached_PluginInvocation ($pi) { $this->_pi = $pi; } diff --git a/lib/RSSWriter091.php b/lib/RSSWriter091.php index 03de0730a..62a843d99 100644 --- a/lib/RSSWriter091.php +++ b/lib/RSSWriter091.php @@ -21,34 +21,34 @@ // for outputting RecentChanges in RSS 0.91 format // ---------------------------------------------------------------------- -rcs_id('$Id: RSSWriter091.php,v 1.9 2004-11-21 11:59:16 rurban Exp $'); +rcs_id('$Id: RSSWriter091.php,v 1.10 2005-08-06 13:06:22 rurban Exp $'); -include_once "lib/RssWriter.php"; +include_once("lib/RssWriter.php"); class RSSWriter091 extends RSSWriter { - function RSSWriter091() - { - $this->XmlElement('rss', array('version' => "0.91")); - $this->_items = array(); - } + function RSSWriter091() + { + $this->XmlElement('rss', array('version' => "0.91")); + $this->_items = array(); + } /** * Finish construction of RSS. */ - function finish() - { + function finish() + { if (isset($this->_finished)) return; - + $channel = &$this->_channel; $items = &$this->_items; - if ($items) - { + if ($items) + { foreach ($items as $i) - $channel->pushContent($i); - } + $channel->pushContent($i); + } $this->pushContent($channel); - $this->__spew(); + $this->__spew(); $this->_finished = true; } @@ -74,18 +74,15 @@ class RSSWriter091 extends RSSWriter } - - class _RecentChanges_RssFormatter091 extends _RecentChanges_RSSFormatter // This class should probably go at then of RecentChanges.php { - function format ($changes) - { - // include_once('lib/RssWriter.php'); + function format ($changes) + { + // include_once('lib/RssWriter.php'); $rss = new RssWriter091; - $rss->channel($this->channel_properties()); if (($props = $this->image_properties())) @@ -107,7 +104,7 @@ extends _RecentChanges_RSSFormatter function channel_properties () - { + { global $request; $rc_url = WikiURL($request->getArg('pagename'), false, 'absurl'); @@ -119,17 +116,17 @@ extends _RecentChanges_RSSFormatter /* FIXME: language should come from $LANG (or other config variable). */ - /* FIXME: other things one might like in : - * managingEditor - * webmaster - * lastBuildDate - * copyright - */ - } + /* FIXME: other things one might like in : + * managingEditor + * webmaster + * lastBuildDate + * copyright + */ + } function item_properties ($rev) - { + { $page = $rev->getPage(); $pagename = $page->getName(); @@ -138,7 +135,6 @@ extends _RecentChanges_RSSFormatter 'link' => $this->pageURL($rev) ); } - } // (c-file-style: "gnu") diff --git a/lib/prepend.php b/lib/prepend.php index b32951ffa..d98e39c37 100644 --- a/lib/prepend.php +++ b/lib/prepend.php @@ -5,9 +5,9 @@ */ $RCS_IDS = ''; function rcs_id ($id) { $GLOBALS['RCS_IDS'] .= "$id\n"; } -rcs_id('$Id: prepend.php,v 1.37 2005-06-22 05:49:00 rurban Exp $'); +rcs_id('$Id: prepend.php,v 1.38 2005-08-06 13:06:22 rurban Exp $'); -define('PHPWIKI_VERSION', '1.3.11_20050610'); +define('PHPWIKI_VERSION', '1.3.11_20050806'); /** * Returns true if current php version is at mimimum a.b.c @@ -20,7 +20,7 @@ function check_php_version ($a = '0', $b = '0', $c = '0') { return ($PHP_VERSION >= ($a.$b.$c)); } -/** PHP5 deprecated old-style globals if !ini_get('register-long-arrays'). +/** PHP5 deprecated old-style globals if !ini_get('register_long_arrays'). * See Bug #1180115 * We want to work with those old ones instead of the new superglobals, * for easier coding. -- 2.45.0