summaryrefslogtreecommitdiff
path: root/add_xref.php
diff options
context:
space:
mode:
Diffstat (limited to 'add_xref.php')
-rw-r--r--add_xref.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/add_xref.php b/add_xref.php
index 89c7908..fcf0ffc 100644
--- a/add_xref.php
+++ b/add_xref.php
@@ -6,6 +6,7 @@
namespace Bitweaver\Liberty;
+
require_once '../kernel/includes/setup_inc.php';
global $gBitSystem, $gBitSmarty, $gBitUser, $gContent;
@@ -23,13 +24,13 @@ if( !$gContent || !$gContent->isValid() ) {
$gContent->verifyUpdatePermission();
if( !empty( $_REQUEST['fCancel'] ) ) {
- header( 'Location: '.$gContent->getDisplayUrl() );
+ header( 'Location: '.$gContent->getEditUrl() );
die;
}
if( !empty( $_REQUEST['fAddXref'] ) ) {
if( $gContent->storeXref( $_REQUEST ) ) {
- header( 'Location: '.$gContent->getDisplayUrl() );
+ header( 'Location: '.$gContent->getEditUrl() );
die;
}
}