summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'edit.php')
-rwxr-xr-xedit.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/edit.php b/edit.php
index e17d9e6..d4e4c87 100755
--- a/edit.php
+++ b/edit.php
@@ -181,10 +181,10 @@ if( isset( $_REQUEST["fCancel"] ) ) {
header( "Location: ".$gContent->getDisplayUrlFromHash( $return ) );
die;
- } else {
+ }
$formInfo = $_REQUEST;
$formInfo['data'] = &$_REQUEST['edit'];
- }
+
} elseif( !empty( $_REQUEST['edit'] ) ) {
// perhaps we have a javascript non-saving form submit
$formInfo = $_REQUEST;
@@ -213,7 +213,7 @@ if( isset( $_REQUEST["preview"] ) ) {
$formInfo['parsed_data'] = LibertyContent::parseDataHash( $data_to_parse );
$gContent->invokeServices( 'content_preview_function' );
-}
+}
$gBitSmarty->assign( 'preview',$preview );
if( $gContent->isInStructure() ) {
@@ -242,13 +242,6 @@ if( $gBitSystem->isPackageActive( 'ckeditor' ) ) {
$gBitSystem->display( 'bitpackage:wiki/edit_page.tpl', 'Edit: '.$gContent->getTitle() , [ 'display_mode' => 'edit' ] );
-
-
-
-
-
-
-
//******************* WIKI Edit Functions
function htmldecode( $string ) {
@@ -474,7 +467,7 @@ if( isset( $_REQUEST["suck_url"] ) ) {
}
// Suck another page and append to the end of current
require_once UTIL_PKG_INCLUDE_PATH.'htmlparser/html_parser_inc.php';
- $suck_url = isset( $_REQUEST["suck_url"] ) ? $_REQUEST["suck_url"] : '';
+ $suck_url = $_REQUEST["suck_url"] ?? '';
$parsehtml = isset( $_REQUEST["parsehtml"] ) ? ( $_REQUEST["parsehtml"] == 'on' ? 'y' : 'n' ): 'n';
if( isset( $_REQUEST['do_suck'] ) && strlen( $suck_url ) > 0 ) {
// \note by zaufi