[pLog-svn] r5755 - in plog/trunk/class: action view
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Jul 29 17:54:03 EDT 2007
Author: oscar
Date: 2007-07-29 17:54:03 -0400 (Sun, 29 Jul 2007)
New Revision: 5755
Modified:
plog/trunk/class/action/locationdisplay.class.php
plog/trunk/class/view/locationview.class.php
Log:
One small fix related to template caching.
Modified: plog/trunk/class/action/locationdisplay.class.php
===================================================================
--- plog/trunk/class/action/locationdisplay.class.php 2007-07-29 21:41:38 UTC (rev 5754)
+++ plog/trunk/class/action/locationdisplay.class.php 2007-07-29 21:54:03 UTC (rev 5755)
@@ -29,7 +29,7 @@
return( false );
}
- $this->_view = new LocationView( $this->_blogInfo );
+ $this->_view = new LocationView( $this->_blogInfo, Array( "location" => $location->getId()));
$this->_view->setLocation( $location );
$this->_view->setValue( "url", $this->_blogInfo->getBlogRequestGenerator());
$this->setCommonData();
Modified: plog/trunk/class/view/locationview.class.php
===================================================================
--- plog/trunk/class/view/locationview.class.php 2007-07-29 21:41:38 UTC (rev 5754)
+++ plog/trunk/class/view/locationview.class.php 2007-07-29 21:54:03 UTC (rev 5755)
@@ -11,7 +11,7 @@
var $_height;
var $_loc;
- function LocationView( $blogInfo )
+ function LocationView( $blogInfo, $data = Array())
{
$r = HttpVars::getRequest();
if( isset( $r["mapOnly"] ))
@@ -19,7 +19,7 @@
else
$template = "location";
- $this->BlogTemplatedView( $blogInfo, $template );
+ $this->BlogTemplatedView( $blogInfo, $template, $data );
}
function setLocation( $loc )
More information about the pLog-svn
mailing list