diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-01-18 11:14:51 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-01-18 11:14:51 +0000 |
| commit | 0fb17dcdc573dc5187a8f2b3191ab29424c9986e (patch) | |
| tree | 6e420b95968e7ca57557b042f86434bf8cb56196 /edit_pigeonholes.php | |
| parent | b872819d7e9d6aa4f7099b301fea741e867eef9f (diff) | |
| download | pigeonholes-0fb17dcdc573dc5187a8f2b3191ab29424c9986e.tar.gz pigeonholes-0fb17dcdc573dc5187a8f2b3191ab29424c9986e.tar.bz2 pigeonholes-0fb17dcdc573dc5187a8f2b3191ab29424c9986e.zip | |
get various areas working again with recent code changes
Diffstat (limited to 'edit_pigeonholes.php')
| -rw-r--r-- | edit_pigeonholes.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/edit_pigeonholes.php b/edit_pigeonholes.php index b709c05..a4e70fb 100644 --- a/edit_pigeonholes.php +++ b/edit_pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.6 2006/01/17 13:40:49 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_pigeonholes/edit_pigeonholes.php,v 1.7 2006/01/18 11:14:51 squareing Exp $ * * Copyright ( c ) 2004 bitweaver.org * Copyright ( c ) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: edit_pigeonholes.php,v 1.6 2006/01/17 13:40:49 squareing Exp $ + * $Id: edit_pigeonholes.php,v 1.7 2006/01/18 11:14:51 squareing Exp $ * @package pigeonholes * @subpackage functions */ @@ -53,7 +53,7 @@ if( !empty( $_REQUEST['pigeonhole_store'] ) ) { $pigeonStore->mContentId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL; $pigeonStore->load(); if( $pigeonStore->store( $_REQUEST['pigeonhole'] ) ) { - header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$pigeonStore->mStructureId.( !empty( $_REQUEST['action'] ) ? '&action='.$_REQUEST['action'] : '' ) ); + header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$pigeonStore->mStructureId.( !empty( $_REQUEST['action'] ) ? '&action='.$_REQUEST['action'] : '' )."&success=".urlencode( tra( "The category was successfully stored" ) ) ); } else { vd( $gPigeonholes->mErrors ); $gBitSmarty->assign( 'msg', tra( "There was a problem trying to store the pigeonhole." ) ); @@ -108,13 +108,13 @@ if( !empty( $_REQUEST['search_objects'] ) ) { $formHash['action'] = 'remove'; $msgHash = array( 'label' => 'Remove Pigeonhole', - 'confirm_item' => $gPigeonholes->mInfo['title'].'<br />and any subitems', + 'confirm_item' => $gPigeonholes->mInfo['title'].'<br />'.tra( 'and any subcategories' ), 'warning' => 'This will remove the pigeonhole but will <strong>not</strong> modify or remove the content itself.', ); $gBitSystem->confirmDialog( $formHash, $msgHash ); } - if( $_REQUEST['action'] == 'demember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) ) { + if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) ) { if( $gPigeonholes->expungePigeonholeMember( $_REQUEST['content_id'], $_REQUEST['parent_id'] ) ) { $feedback['success'] = tra( 'The item was successfully removed' ); } else { @@ -125,6 +125,10 @@ if( !empty( $_REQUEST['search_objects'] ) ) { } } +if( !empty( $_REQUEST['success'] ) ) { + $feedback['success'] = $_REQUEST['success']; +} + // get content include_once( LIBERTY_PKG_PATH.'get_content_list_inc.php' ); foreach( $contentList['data'] as $cItem ) { |
