[Phpslash-commit] CVS: phpslash-dev/include/modules/story index.php,1.7,1.8
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-09-09 20:45:06
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/story In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3586/phpslash-dev/include/modules/story Modified Files: index.php Log Message: returned "Email This Story". Index: index.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/story/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 11 Nov 2003 22:11:11 -0000 1.7 --- index.php 9 Sep 2004 20:44:54 -0000 1.8 *************** *** 14,20 **** $story = pslNew("Story"); ! if(array_key_exists('story_id', $ary)) { // one particular story requested ! $content = $story->getStory($ary['story_id'], "full", $ary); } else { // otherwise show stories for the section --- 14,30 ---- $story = pslNew("Story"); ! $content = ''; ! ! if(array_key_exists('story_id', $ary)) { ! if(array_key_exists('submit',$ary)) { ! switch($ary['submit']) { ! ! case 'email': ! $content .= $story->emailStory($ary['story_id'], $ary['action']); ! break; ! } ! } // one particular story requested ! $content .= $story->getStory($ary['story_id'], "full", $ary); } else { // otherwise show stories for the section |