[pLog-svn] r4580 - plog/trunk/class/action
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jan 26 09:54:10 EST 2007
Author: oscar
Date: 2007-01-26 14:54:09 +0000 (Fri, 26 Jan 2007)
New Revision: 4580
Modified:
plog/trunk/class/action/blogaction.class.php
Log:
The check that determines whether to store the referrer or not has been moved to the right place.
Modified: plog/trunk/class/action/blogaction.class.php
===================================================================
--- plog/trunk/class/action/blogaction.class.php 2007-01-26 14:29:49 UTC (rev 4579)
+++ plog/trunk/class/action/blogaction.class.php 2007-01-26 14:54:09 UTC (rev 4580)
@@ -302,9 +302,11 @@
// update the referer statistics
lt_include( PLOG_CLASS_PATH."class/dao/referers.class.php" );
- $referers = new Referers();
- if (array_key_exists( 'HTTP_REFERER', $_SERVER ))
- $referers->addReferer( $_SERVER['HTTP_REFERER'], 0, $this->_blogInfo->getId());
+ if( $this->_config->getValue( "referer_tracker_enabled", true )) {
+ $referers = new Referers();
+ if (array_key_exists( 'HTTP_REFERER', $_SERVER ))
+ $referers->addReferer( $_SERVER['HTTP_REFERER'], 0, $this->_blogInfo->getId());
+ }
return true;
}
More information about the pLog-svn
mailing list