[pLog-svn] r6952 - plog/branches/lifetype-1.2/class/view
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu Jan 7 11:03:09 EST 2010
Author: jondaley
Date: 2010-01-07 11:03:09 -0500 (Thu, 07 Jan 2010)
New Revision: 6952
Modified:
plog/branches/lifetype-1.2/class/view/viewarticleview.class.php
Log:
put article title first (better for search engines). Also put page number in title. fixes #1542
Modified: plog/branches/lifetype-1.2/class/view/viewarticleview.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/view/viewarticleview.class.php 2010-01-07 15:55:28 UTC (rev 6951)
+++ plog/branches/lifetype-1.2/class/view/viewarticleview.class.php 2010-01-07 16:03:09 UTC (rev 6952)
@@ -44,7 +44,11 @@
function getPageTitle()
{
$article = $this->getValue( "post" );
- return( $this->_blogInfo->getBlog()." | ".$article->getTopic());
+ $title = $article->getTopic()." | ".$this->_blogInfo->getBlog();
+ $page = $this->getCurrentPageFromRequest();
+ if($page != 1)
+ $title .= " | $page";
+ return $title;
}
/**
More information about the pLog-svn
mailing list