--- mambo/branches/4.6/components/com_content/content.php 2008/05/28 08:25:37 1729 +++ mambo/branches/4.6/components/com_content/content.php 2008/05/28 11:20:34 1730 @@ -1111,9 +1111,9 @@ function show( $row, $params, $gid, &$access, $pop, $option, $ItemidCount=NULL ) { global $database, $mainframe, $Itemid; global $mosConfig_live_site, $mosConfig_absolute_path; - global $options, $task; + global $options, $task; - //$cache = mosCache::getCache('com_content','Output'); + //$cache = mosCache::getCache('com_content','Output'); $noauth = !$mainframe->getCfg( 'shownoauth' ); @@ -1219,10 +1219,10 @@ $obj = new mosContent( $database ); $obj->hit( $row->id ); } - //if(!($cache->start($task.$row->id.$page,'com_content'))){ - HTML_content::show( $row, $params, $access, $page, $option, $ItemidCount ); - // $cache->end(); - //} + //if(!($cache->start($task.$row->id.$page,'com_content'))){ + HTML_content::show( $row, $params, $access, $page, $option, $ItemidCount ); + // $cache->end(); + //} } @@ -1458,7 +1458,9 @@ } $Itemid = mosGetParam( $_POST, 'Returnid', '0' ); $msg = $isNew ? T_('Thanks for your submission; it will be reviewed before being posted to the site.') : T_('Item saved successfully.'); - mosRedirect( 'index.php', $msg ); + + $link = $isNew ? 'index.php' : sefRelToAbs( 'index.php?option=com_content&task=view&id='.$row->id.'&Itemid='.$Itemid ); + mosRedirect( $link, $msg); } @@ -1480,7 +1482,8 @@ $Itemid = mosGetParam( $_POST, 'Returnid', '0' ); - mosRedirect( 'index.php' ); + $link = sefRelToAbs( 'index.php?option=com_content&task=view&id='.$row->id.'&Itemid='.$Itemid ); + mosRedirect( $link ); } /**