[pLog-svn] r5973 - in plog/trunk/class: dao object security
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Oct 7 13:49:47 EDT 2007
Author: oscar
Date: 2007-10-07 13:49:47 -0400 (Sun, 07 Oct 2007)
New Revision: 5973
Modified:
plog/trunk/class/dao/article.class.php
plog/trunk/class/object/loader.class.php
plog/trunk/class/security/bayesianfilter.class.php
Log:
Some minor fixes related to the autoloading of classes.
Modified: plog/trunk/class/dao/article.class.php
===================================================================
--- plog/trunk/class/dao/article.class.php 2007-10-07 17:45:17 UTC (rev 5972)
+++ plog/trunk/class/dao/article.class.php 2007-10-07 17:49:47 UTC (rev 5973)
@@ -138,7 +138,7 @@
function getText( $replace = '' )
{
if( $replace !== false )
- return str_replace( POST_EXTENDED_TEXT_MODIFIER, $replace, $this->_text );
+ return str_replace( Article::POST_EXTENDED_TEXT_MODIFIER, $replace, $this->_text );
else
return $this->_text;
}
@@ -150,7 +150,7 @@
*/
function getIntroText()
{
- $postParts = explode( POST_EXTENDED_TEXT_MODIFIER, $this->_text );
+ $postParts = explode( Article::POST_EXTENDED_TEXT_MODIFIER, $this->_text );
return $postParts[0];
}
@@ -161,9 +161,9 @@
*/
function setIntroText( $introText )
{
- $postParts = explode( POST_EXTENDED_TEXT_MODIFIER, $this->_text );
+ $postParts = explode( Article::POST_EXTENDED_TEXT_MODIFIER, $this->_text );
if( $this->hasExtendedText())
- $this->_text = $introText.POST_EXTENDED_TEXT_MODIFIER.$postParts[1];
+ $this->_text = $introText.Article::POST_EXTENDED_TEXT_MODIFIER.$postParts[1];
else
$this->setText( $introText );
@@ -177,7 +177,7 @@
*/
function getExtendedText()
{
- $postParts = explode( POST_EXTENDED_TEXT_MODIFIER, $this->_text );
+ $postParts = explode( Article::POST_EXTENDED_TEXT_MODIFIER, $this->_text );
$extendedText = "";
if ( count($postParts) > 1 )
{
@@ -193,8 +193,8 @@
*/
function setExtendedText( $extendedText )
{
- $postParts = explode( POST_EXTENDED_TEXT_MODIFIER, $this->_text );
- $this->_text = $postParts[0].POST_EXTENDED_TEXT_MODIFIER.$extendedText;
+ $postParts = explode( Article::POST_EXTENDED_TEXT_MODIFIER, $this->_text );
+ $this->_text = $postParts[0].Article::POST_EXTENDED_TEXT_MODIFIER.$extendedText;
return true;
}
Modified: plog/trunk/class/object/loader.class.php
===================================================================
--- plog/trunk/class/object/loader.class.php 2007-10-07 17:45:17 UTC (rev 5972)
+++ plog/trunk/class/object/loader.class.php 2007-10-07 17:49:47 UTC (rev 5973)
@@ -8,8 +8,6 @@
}
}
- lt_include( PLOG_CLASS_PATH."class/object/smartloader.class.php" );
-
/**
* Lifetype's own autolaoder class
*
Modified: plog/trunk/class/security/bayesianfilter.class.php
===================================================================
--- plog/trunk/class/security/bayesianfilter.class.php 2007-10-07 17:45:17 UTC (rev 5972)
+++ plog/trunk/class/security/bayesianfilter.class.php 2007-10-07 17:49:47 UTC (rev 5973)
@@ -1,6 +1,6 @@
<?php
- lt_include( PLOG_CLASS_PATH."class/dao/articleecommentstatus.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/dao/articlecommentstatus.class.php" );
define("HIGH_SPAM_PROBABILITY", 1000);
More information about the pLog-svn
mailing list