[Phpslash-commit] CVS: phpslash-dev/include/modules/story index.php,1.8,1.9
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-10-14 17:55:48
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/story In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23377/phpslash-dev/include/modules/story Modified Files: index.php Log Message: Story titles should display correctly. Index: index.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 9 Sep 2004 20:44:54 -0000 1.8 --- index.php 14 Oct 2004 17:55:32 -0000 1.9 *************** *** 2,6 **** // $Id$ ! global $_PSL, $ary; AddClassRequirement("story_base",$_PSL['moduledir'] . "/story/Story_base.class"); --- 2,6 ---- // $Id$ ! global $_PSL, $ary, $pagetitle; AddClassRequirement("story_base",$_PSL['moduledir'] . "/story/Story_base.class"); *************** *** 9,14 **** AddClassRequirement("story_plugin_i",$_PSL['moduledir'] ."/". $_PSL['module']['Story'] ."/Story_plugin_i.class"); ! $pagetitle = pslgetText('Home'); // The name to be displayed in the header ! $xsiteobject = pslgetText('Home Page'); // This Defines The META Tag Object Type $story = pslNew("Story"); --- 9,14 ---- AddClassRequirement("story_plugin_i",$_PSL['moduledir'] ."/". $_PSL['module']['Story'] ."/Story_plugin_i.class"); ! // $pagetitle = pslgetText('Home'); // The name to be displayed in the header ! // $xsiteobject = pslgetText('Home Page'); // This Defines The META Tag Object Type $story = pslNew("Story"); *************** *** 27,33 **** --- 27,39 ---- // one particular story requested $content .= $story->getStory($ary['story_id'], "full", $ary); + $title = $story->getTitle($story_id); + $ttitle = stripslashes(ereg_replace("<([^>]*)>", "", $title)); + $pagetitle = pslgetText($ttitle); // The name to be displayed in the header + $xsiteobject = pslgetText('Article Page'); // This Defines The META Tag Object Type } else { // otherwise show stories for the section $content = $story->getStories($ary); + $pagetitle = pslgetText($ary['section']); // The name to be displayed in the header + $xsiteobject = pslgetText('Index Page'); // This Defines The META Tag Object Type } |