From f9dba4aa7e134f6f715966f02a0d631510173b7e Mon Sep 17 00:00:00 2001 From: Wakeworks Date: Thu, 15 Jun 2006 18:14:09 +0000 Subject: support BIT_CONTENT_MAX_TITLE_LEN for hand tinkering databases to have larger or smaller title lengths --- BitArticle.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'BitArticle.php') diff --git a/BitArticle.php b/BitArticle.php index 48da990..dfbb316 100644 --- a/BitArticle.php +++ b/BitArticle.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.82 $ $Date: 2006/05/05 13:46:20 $ $Author: sylvieg $ + * @version $Revision: 1.83 $ $Date: 2006/06/15 18:14:09 $ $Author: wakeworks $ */ /** @@ -244,10 +244,10 @@ class BitArticle extends LibertyAttachable { if( empty( $pParamHash['title'] ) ) { $this->mErrors['title'] = 'You must specify a title.'; } else { - $pParamHash['content_store']['title'] = substr( $pParamHash['title'], 0, 160 ); + $pParamHash['content_store']['title'] = substr( $pParamHash['title'], 0, BIT_CONTENT_MAX_TITLE_LEN ); } } else { - $pParamHash['content_store']['title'] =( isset( $pParamHash['title'] ))? substr( $pParamHash['title'], 0, 160 ): ''; + $pParamHash['content_store']['title'] =( isset( $pParamHash['title'] ))? substr( $pParamHash['title'], 0, BIT_CONTENT_MAX_TITLE_LEN ): ''; } } else if( empty( $pParamHash['title'] ) ) { // no name specified -- cgit v1.3