summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BitBook.php30
-rw-r--r--BitPage.php58
-rw-r--r--edit.php8
-rw-r--r--edit_book.php6
-rw-r--r--list_pages.php7
-rw-r--r--lookup_page_inc.php6
-rw-r--r--modules/mod_last_modif_pages.tpl8
-rw-r--r--templates/center_wiki_page.php6
-rw-r--r--wiki_rss.php4
9 files changed, 62 insertions, 71 deletions
diff --git a/BitBook.php b/BitBook.php
index ba4234d..c061d30 100644
--- a/BitBook.php
+++ b/BitBook.php
@@ -3,7 +3,7 @@
* BitBook class
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @package wiki
*/
// +----------------------------------------------------------------------+
@@ -18,7 +18,7 @@
// | Authors: spider <spider@steelsun.com>
// +----------------------------------------------------------------------+
//
-// $Id: BitBook.php,v 1.3 2005/10/23 14:44:19 squareing Exp $
+// $Id: BitBook.php,v 1.4 2005/12/26 12:27:43 squareing Exp $
/**
@@ -34,25 +34,23 @@ define('BITBOOK_CONTENT_TYPE_GUID', 'bitbook' );
*
* @abstract
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @package wiki
* @subpackage BitBook
*/
class BitBook extends BitPage {
-
-
- function BitBook( $pPageId=NULL, $pContentId=NULL ) {
- $this->registerContentType( BITBOOK_CONTENT_TYPE_GUID, array(
- 'content_type_guid' => BITBOOK_CONTENT_TYPE_GUID,
- 'content_description' => 'Wiki Book',
- 'handler_class' => 'BitBook',
- 'handler_package' => 'wiki',
- 'handler_file' => 'BitBook.php',
- 'maintainer_url' => 'http://www.bitweaver.org'
- ) );
- BitPage::BitPage( $pPageId, $pContentId );
+ function BitBook( $pPageId=NULL, $pContentId=NULL ) {
+ $this->registerContentType( BITBOOK_CONTENT_TYPE_GUID, array(
+ 'content_type_guid' => BITBOOK_CONTENT_TYPE_GUID,
+ 'content_description' => 'Wiki Book',
+ 'handler_class' => 'BitBook',
+ 'handler_package' => 'wiki',
+ 'handler_file' => 'BitBook.php',
+ 'maintainer_url' => 'http://www.bitweaver.org'
+ ) );
+ BitPage::BitPage( $pPageId, $pContentId );
$this->mContentTypeGuid = BITBOOK_CONTENT_TYPE_GUID;
- }
+ }
function getList( &$pListHash ) {
$struct = new LibertyStructure();
diff --git a/BitPage.php b/BitPage.php
index ede11c9..4fef787 100644
--- a/BitPage.php
+++ b/BitPage.php
@@ -1,11 +1,11 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_wiki/BitPage.php,v 1.13 2005/12/18 22:33:42 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_wiki/BitPage.php,v 1.14 2005/12/26 12:27:43 squareing Exp $
* @package wiki
*
* @author spider <spider@steelsun.com>
*
- * @version $Revision: 1.13 $ $Date: 2005/12/18 22:33:42 $ $Author: squareing $
+ * @version $Revision: 1.14 $ $Date: 2005/12/26 12:27:43 $ $Author: squareing $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -13,7 +13,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitPage.php,v 1.13 2005/12/18 22:33:42 squareing Exp $
+ * $Id: BitPage.php,v 1.14 2005/12/26 12:27:43 squareing Exp $
*/
/**
@@ -43,15 +43,15 @@ class BitPage extends LibertyAttachable {
'handler_file' => 'BitPage.php',
'maintainer_url' => 'http://www.bitweaver.org'
) );
- $this->mPageId = $pPageId;
- $this->mContentId = $pContentId;
+ $this->mPageId = (int)$pPageId;
+ $this->mContentId = (int)$pContentId;
$this->mContentTypeGuid = BITPAGE_CONTENT_TYPE_GUID;
}
function findByPageName( $pPageName, $pUserId=NULL ) {
$userWhere = '';
$bindVars = array( $pPageName, $this->mContentTypeGuid );
- if( !empty( $pUserId ) ) {
+ if( @BitBase::verifyId( $pUserId ) ) {
$userWhere = " AND tc.`user_id`=?";
array_push( $bindVars, $pUserId );
}
@@ -62,12 +62,12 @@ class BitPage extends LibertyAttachable {
function load() {
if( $this->verifyId( $this->mPageId ) || $this->verifyId( $this->mContentId ) ) {
global $gBitSystem;
- $lookupColumn = !empty( $this->mPageId )? 'page_id' : 'content_id';
+ $lookupColumn = @BitBase::verifyId( $this->mPageId ) ? 'page_id' : 'content_id';
$bindVars = array(); $selectSql = ''; $joinSql = ''; $whereSql = '';
$this->getServicesSql( 'content_load_function', $selectSql, $joinSql, $whereSql, $bindVars );
- array_push( $bindVars, $lookupId = !empty( $this->mPageId )? $this->mPageId : $this->mContentId );
+ array_push( $bindVars, $lookupId = @BitBase::verifyId( $this->mPageId )? $this->mPageId : $this->mContentId );
$query = "select tp.*, tc.*,
uue.`login` AS modifier_user, uue.`real_name` AS modifier_real_name,
uuc.`login` AS creator_user, uuc.`real_name` AS creator_real_name $selectSql
@@ -118,7 +118,7 @@ class BitPage extends LibertyAttachable {
$pParamHash['page_store']['page_size'] = !empty( $pParamHash['edit'] ) ? strlen( $pParamHash['edit'] ) : 0;
$table = BIT_DB_PREFIX."tiki_pages";
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$this->invalidateCache();
if( !empty( $pParamHash['force_history'] ) || ( empty( $pParamHash['minor'] ) && !empty( $this->mInfo['version'] ) && $pParamHash['field_changed'] )) {
if( $this->mPageName != 'SandBox' && empty( $pParamHash['has_no_history'] ) ) {
@@ -134,7 +134,7 @@ class BitPage extends LibertyAttachable {
} else {
$pParamHash['page_store']['content_id'] = $pParamHash['content_id'];
- if( isset( $pParamHash['page_id'] ) && is_numeric( $pParamHash['page_id'] ) ) {
+ if( @$this->verifyId( $pParamHash['page_id'] ) ) {
// if pParamHash['page_id'] is set, some is requesting a particular page_id. Use with caution!
$pParamHash['page_store']['page_id'] = $pParamHash['page_id'];
} else {
@@ -203,11 +203,11 @@ class BitPage extends LibertyAttachable {
global $gBitUser, $user, $bit_p_rename, $gBitSystem;
// make sure we're all loaded up of we have a mPageId
- if( $this->mPageId && empty( $this->mInfo ) ) {
+ if( $this->verifyId( $this->mPageId ) && empty( $this->mInfo ) ) {
$this->load();
}
- if( !empty( $this->mInfo['content_id'] ) ) {
+ if( $this->verifyId( $this->mInfo['content_id'] ) ) {
$pParamHash['content_id'] = $this->mInfo['content_id'];
}
@@ -216,7 +216,7 @@ class BitPage extends LibertyAttachable {
$pParamHash['content_type_guid'] = $this->mContentTypeGuid;
}
- if( !empty( $pParamHash['content_id'] ) ) {
+ if( @$this->verifyId( $pParamHash['content_id'] ) ) {
$pParamHash['page_store']['content_id'] = $pParamHash['content_id'];
}
@@ -234,7 +234,7 @@ class BitPage extends LibertyAttachable {
if( empty( $pParamHash['title'] ) ) {
$this->mErrors['title'] = 'You must specify a name';
} elseif( !empty( $pParamHash['title']) || !empty($this->mPageName)) {
- if( empty( $this->mPageId ) ) {
+ if( !$this->verifyId( $this->mPageId ) ) {
if( empty( $pParamHash['title'] ) ) {
$this->mErrors['title'] = 'You must enter a name for this page.';
} else {
@@ -284,7 +284,7 @@ class BitPage extends LibertyAttachable {
}
}
- if( empty( $this->mPageId ) ) {
+ if( !$this->verifyId( $this->mPageId ) ) {
$pParamHash['page_store']['version'] = 1;
} else {
$pParamHash['page_store']['version'] = $this->mInfo['version'] + 1;
@@ -322,13 +322,13 @@ class BitPage extends LibertyAttachable {
}
function isValid() {
- return( !empty( $this->mPageId ) );
+ return( $this->verifyId( $this->mPageId ) );
}
function isLocked() {
$ret = FALSE;
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
if( empty( $this->mInfo ) ) {
$this->load();
}
@@ -338,7 +338,7 @@ class BitPage extends LibertyAttachable {
}
function setLock( $pLock, $pModUserId=NULL ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$bindVars = array();
$userSql = '';
if( $pModUserId ) {
@@ -366,7 +366,7 @@ class BitPage extends LibertyAttachable {
* version in the tiki_history then the last version becomes the actual version
*/
function removeLastVersion( $comment = '' ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
global $gBitSystem;
$this->invalidateCache();
$query = "select * from `".BIT_DB_PREFIX."tiki_history` where `page_id`=? order by ".$this->mDb->convert_sortmode("last_modified_desc");
@@ -391,7 +391,7 @@ class BitPage extends LibertyAttachable {
* Store footnote
*/
function storeFootnote($pUserId, $data) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$querydel = "delete from `".BIT_DB_PREFIX."tiki_page_footnotes` where `user_id`=? and `page_id`=?";
$this->mDb->query( $querydel, array( $pUserId, $this->mPageId ) );
$query = "insert into `".BIT_DB_PREFIX."tiki_page_footnotes`(`user_id`,`page_id`,`data`) values(?,?,?)";
@@ -403,7 +403,7 @@ class BitPage extends LibertyAttachable {
* Delete footnote
*/
function expungeFootnote( $pUserId ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$query = "delete from `".BIT_DB_PREFIX."tiki_page_footnotes` where `user_id`=? and `page_id`=?";
$this->mDb->query($query,array($pUserId,$this->mPageId));
}
@@ -413,7 +413,7 @@ class BitPage extends LibertyAttachable {
* Get footnote
*/
function getFootnote( $pUserId ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$count = $this->mDb->getOne( "select count(*) from `".BIT_DB_PREFIX."tiki_page_footnotes` where `user_id`=? and `page_id`=?", array( $pUserId, $this->mPageId ) );
if( $count ) {
return $this->mDb->getOne("select `data` from `".BIT_DB_PREFIX."tiki_page_footnotes` where `user_id`=? and `page_id`=?",array( $pUserId, $this->mPageId ) );
@@ -545,7 +545,7 @@ class BitPage extends LibertyAttachable {
if( $this->isValid() ) {
global $gBitSystem;
$versionSql = '';
- if( !empty( $pUserId ) ) {
+ if( @BitBase::verifyId( $pUserId ) ) {
$bindVars = array( $pUserId );
$whereSql = ' th.`user_id`=? ';
} else {
@@ -698,7 +698,7 @@ class BitPage extends LibertyAttachable {
* @param cache Data to be cached
*/
function setPageCache( $cache ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$query = "update `".BIT_DB_PREFIX."tiki_pages` set `wiki_cache`=? where `page_id`=?";
$this->mDb->query( $query, array( $cache, $this->mPageId ) );
}
@@ -709,7 +709,7 @@ class BitPage extends LibertyAttachable {
* @param page ? Not used
*/
function get_cache_info($page) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$query = "select `cache`,`cache_timestamp` from `".BIT_DB_PREFIX."tiki_pages` where `page_id`=?";
$result = $this->mDb->query( $query, array( $this->mPageId ) );
return $result->fetchRow();
@@ -721,7 +721,7 @@ class BitPage extends LibertyAttachable {
* @param data Data to be cached
*/
function updateCache( $data ) {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
global $gBitSystem;
$now = $gBitSystem->getUTCTime();
$query = "update `".BIT_DB_PREFIX."tiki_pages` set `cache`=?, `cache_timestamp`=$now where `page_id`=?";
@@ -735,7 +735,7 @@ class BitPage extends LibertyAttachable {
* Cache will be updated next time the page is accessed
*/
function invalidateCache() {
- if( $this->mPageId ) {
+ if( $this->verifyId( $this->mPageId ) ) {
$query = "UPDATE `".BIT_DB_PREFIX."tiki_pages` SET `cache_timestamp`=? WHERE `page_id`=?";
$this->mDb->query( $query, array( 0, $this->mPageId ) );
}
@@ -789,7 +789,7 @@ class BitPage extends LibertyAttachable {
} elseif ( is_string($find) and $find != '' ) { // or a string
$mid = " AND UPPER(tc.`title`) LIKE ? ";
$bindVars = array_merge($bindVars,array('%' . strtoupper( $find ) . '%'));
- } elseif( !empty( $pUserId ) ) { // or a string
+ } elseif( @BitBase::verifyId( $pUserId ) ) { // or a string
$mid = " AND tc.`user_id` = ? ";
$bindVars = array_merge($bindVars, array( $pUserId ));
}
@@ -1287,7 +1287,7 @@ class WikiLib extends BitPage {
}
// Removes all the versions of a page and the page itself
function remove_all_versions( $pPageId, $comment = '') {
- if( is_numeric( $pPageId ) ) {
+ if( $this->verifyId( $pPageId ) ) {
global $gBitUser,$gBitSystem;
$this->mDb->StartTrans();
diff --git a/edit.php b/edit.php
index 588bf4b..89b8db6 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/edit.php,v 1.10 2005/12/18 22:33:43 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/edit.php,v 1.11 2005/12/26 12:27:43 squareing Exp $
*
* Copyright( c ) 2004 bitweaver.org
* Copyright( c ) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: edit.php,v 1.10 2005/12/18 22:33:43 squareing Exp $
+ * $Id: edit.php,v 1.11 2005/12/26 12:27:43 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -184,7 +184,7 @@ if( isset( $_REQUEST["suck_url"] ) ) {
// Need to parse HTML?
if( $parsehtml == 'y' ) {
// Read compiled( serialized ) grammar
- $grammarfile = HTML_PKG_PATH.'htmlgrammar.cmp';
+ $grammarfile = UTIL_PKG_PATH.'htmlparser/htmlgrammar.cmp';
if( !$fp = @fopen( $grammarfile,'r' ) ) {
$gBitSystem->fatalError( 'Can\'t parse remote HTML page' );
}
@@ -323,7 +323,7 @@ function parse_output( &$obj, &$parts,$i ) {
// Pro
// Check if the page has changed
if( isset( $_REQUEST["fCancel"] ) ) {
- if( !empty( $gContent->mContentId ) ) {
+ if( @BitBase::verifyId( $gContent->mContentId ) ) {
header( "Location: ".$gContent->getDisplayUrl() );
} else {
header( "Location: ".WIKI_PKG_URL );
diff --git a/edit_book.php b/edit_book.php
index b093f1e..d17c914 100644
--- a/edit_book.php
+++ b/edit_book.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.5 2005/12/18 22:33:43 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/edit_book.php,v 1.6 2005/12/26 12:27:43 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: edit_book.php,v 1.5 2005/12/18 22:33:43 squareing Exp $
+ * $Id: edit_book.php,v 1.6 2005/12/26 12:27:43 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -92,7 +92,7 @@ if( isset($_REQUEST["createstructure"]) ) {
}
header( "location: ".WIKI_PKG_URL."edit_book.php?structure_id=".$structure_id );
}
-} elseif( !empty( $_REQUEST["structure_id"] ) ) {
+} elseif( @BitBase::verifyId( $_REQUEST["structure_id"] ) ) {
// Get all wiki pages for the select box
$_REQUEST['content_type'] = !isset( $_REQUEST['content_type'] ) ? 'bitpage' : $_REQUEST['content_type'];
// verify the book permission on structure load
diff --git a/list_pages.php b/list_pages.php
index 7d355aa..03f7a95 100644
--- a/list_pages.php
+++ b/list_pages.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/list_pages.php,v 1.4 2005/08/01 18:42:04 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/list_pages.php,v 1.5 2005/12/26 12:27:43 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: list_pages.php,v 1.4 2005/08/01 18:42:04 squareing Exp $
+ * $Id: list_pages.php,v 1.5 2005/12/26 12:27:43 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -87,9 +87,6 @@ if (isset($_REQUEST['page'])) {
$gBitSmarty->assign_by_ref('offset', $offset);
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
-// If we leave $_REQUEST["find"] set, it also seems to affect other places
-// like the shoutbox.
- $_REQUEST["find"] = "";
} else {
$find = '';
}
diff --git a/lookup_page_inc.php b/lookup_page_inc.php
index e826296..b97cc4d 100644
--- a/lookup_page_inc.php
+++ b/lookup_page_inc.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.4 2005/08/24 21:00:26 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/lookup_page_inc.php,v 1.5 2005/12/26 12:27:43 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: lookup_page_inc.php,v 1.4 2005/08/24 21:00:26 squareing Exp $
+ * $Id: lookup_page_inc.php,v 1.5 2005/12/26 12:27:43 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -23,7 +23,7 @@
// if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up.
if( empty( $gContent ) || !is_object( $gContent ) ) {
- $gContent = new BitPage( !empty( $_REQUEST['page_id'] ) ? $_REQUEST['page_id'] : NULL, !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL );
+ $gContent = new BitPage( @BitBase::verifyId( $_REQUEST['page_id'] ) ? $_REQUEST['page_id'] : NULL, @BitBase::verifyId( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL );
$loadPage = (!empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : NULL);
if( empty( $gContent->mPageId ) && empty( $gContent->mContentId ) ) {
diff --git a/modules/mod_last_modif_pages.tpl b/modules/mod_last_modif_pages.tpl
index 7243d38..9bf0da7 100644
--- a/modules/mod_last_modif_pages.tpl
+++ b/modules/mod_last_modif_pages.tpl
@@ -1,16 +1,10 @@
-{* $Header: /cvsroot/bitweaver/_bit_wiki/modules/mod_last_modif_pages.tpl,v 1.2 2005/07/17 17:36:46 squareing Exp $ *}
{strip}
{if $gBitSystem->isPackageActive( 'wiki' )}
- {if $nonums eq 'y'}
- {eval var="{tr}Last `$module_rows` changes{/tr}" assign="tpl_module_title"}
- {else}
- {eval var="{tr}Last changes{/tr}" assign="tpl_module_title"}
- {/if}
{bitmodule title="$moduleTitle" name="last_modif_pages"}
<ol>
{section name=ix loop=$modLastModif}
<li>
- <a href="{$modLastModif[ix].display_url}" title="{$modLastModif[ix].title} - {$modLastModif[ix].last_modified|bit_short_datetime}, by {displayname user=$modLastModif[ix].modifier_user real_name=$modLastModif[ix].modifier_real_name nolink=1}{if (strlen($modLastModif[ix].title) > $maxlen) AND ($maxlen > 0)}, {$modLastModif[ix].title}{/if}">
+ <a href="{$modLastModif[ix].display_url}" title="{$modLastModif[ix].title} - {displayname user=$modLastModif[ix].modifier_user real_name=$modLastModif[ix].modifier_real_name nolink=1}, {$modLastModif[ix].last_modified|bit_short_date}">
{if $maxlen gt 0}
{$modLastModif[ix].title|truncate:$maxlen:"...":true}
{else}
diff --git a/templates/center_wiki_page.php b/templates/center_wiki_page.php
index 062fb87..c8a5be0 100644
--- a/templates/center_wiki_page.php
+++ b/templates/center_wiki_page.php
@@ -21,8 +21,10 @@ $modParams = $modlib->get_module_params('bitpackage:wiki/center_wiki_page.tpl',
$gBitSmarty->assign_by_ref('modParams', $modParams);
// Load up the correct wiki page
-$_REQUEST['page'] = (!empty($modParams['page']) ? $modParams['page'] : 'HomePage');
-include_once(WIKI_PKG_PATH."lookup_page_inc.php");
+$_REQUEST['page_id'] = ( !empty( $modParams['page_id'] ) ? $modParams['page_id'] : NULL );
+$_REQUEST['content_id'] = ( !empty( $modParams['content_id'] ) ? $modParams['content_id'] : NULL );
+$_REQUEST['page'] = ( !empty( $modParams['page'] ) ? $modParams['page'] : 'HomePage' );
+include_once( WIKI_PKG_PATH."lookup_page_inc.php" );
// Parse the wiki page data (This should be done by BitPage->load shouldn't it?)
$gContent->mInfo['parsed_data'] = $gContent->parseData();
diff --git a/wiki_rss.php b/wiki_rss.php
index 128545f..0b04c06 100644
--- a/wiki_rss.php
+++ b/wiki_rss.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_wiki/wiki_rss.php,v 1.4 2005/11/22 07:29:25 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_wiki/wiki_rss.php,v 1.5 2005/12/26 12:27:43 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -41,7 +41,7 @@ if( !$gBitUser->hasPermission( 'bit_p_view' ) ) {
$item->source = 'http://'.$_SERVER['HTTP_HOST'].BIT_ROOT_URL;
$item->author = $gBitUser->getDisplayName( FALSE, array( 'real_name' => $feed['modifier_real_name'], 'login' => $feed['modifier_user'] ) );
- $item->descriptionTruncSize = $gBitSystem->getPreference( 'rssfeed_truncate', 1000 );
+ $item->descriptionTruncSize = $gBitSystem->getPreference( 'rssfeed_truncate', 5000 );
$item->descriptionHtmlSyndicated = FALSE;
// pass the item on to the rss feed creator