[geeklog-cvs] geeklog-1.3/system lib-story.php,1.21,1.22
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Feb 6 05:57:50 EST 2005
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv22426/system
Modified Files:
lib-story.php
Log Message:
Hide 'edit' option for articles in preview (bug #347)
Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** lib-story.php 30 Jan 2005 20:01:22 -0000 1.21
--- lib-story.php 6 Feb 2005 10:57:48 -0000 1.22
***************
*** 48,52 ****
*
* @param array $A Data to display as an article (associative array from record from gl_stories)
! * @param string $index whether or not this is the index page if 'n' then compact display for index page else display full article
* @return string Article as formated HTML
*
--- 48,52 ----
*
* @param array $A Data to display as an article (associative array from record from gl_stories)
! * @param string $index whether or not this is the index page if 'n' then compact display for index page else display full article, also: 'p' = preview
* @return string Article as formated HTML
*
***************
*** 187,191 ****
$introtext = PLG_replacetags($introtext); // Replace any plugin autolink tags
! if( $index == 'n' )
{
$article->set_var( 'story_title', stripslashes( $A['title'] ));
--- 187,191 ----
$introtext = PLG_replacetags($introtext); // Replace any plugin autolink tags
! if(( $index == 'n' ) || ( $index == 'p' ))
{
$article->set_var( 'story_title', stripslashes( $A['title'] ));
***************
*** 329,333 ****
$article->set_var( 'recent_post_anchortag', $recent_post_anchortag );
! if( SEC_hasAccess( $A['owner_id'], $A['group_id'], $A['perm_owner'], $A['perm_group'], $A['perm_members'], $A['perm_anon'] ) == 3 AND SEC_hasrights( 'story.edit' ))
{
$article->set_var( 'edit_link', '<a href="' . $_CONF['site_admin_url']
--- 329,333 ----
$article->set_var( 'recent_post_anchortag', $recent_post_anchortag );
! if( SEC_hasAccess( $A['owner_id'], $A['group_id'], $A['perm_owner'], $A['perm_group'], $A['perm_members'], $A['perm_anon'] ) == 3 AND SEC_hasrights( 'story.edit' ) AND ( $index != 'p' ))
{
$article->set_var( 'edit_link', '<a href="' . $_CONF['site_admin_url']
More information about the geeklog-cvs
mailing list