summaryrefslogtreecommitdiff
path: root/export_wiki_pages.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-29 13:03:49 +0100
committerlsces <lester@lsces.co.uk>2025-08-29 13:03:49 +0100
commit144b7ea64606dd1875b10ce87693250f84bea3f7 (patch)
treedc05003a3f39d5c8641fcd9a9de3569c6eaeff1a /export_wiki_pages.php
parent7fefadbccfeb0e9effe1342adb7a5d52755d401c (diff)
downloadwiki-144b7ea64606dd1875b10ce87693250f84bea3f7.tar.gz
wiki-144b7ea64606dd1875b10ce87693250f84bea3f7.tar.bz2
wiki-144b7ea64606dd1875b10ce87693250f84bea3f7.zip
General code updated to PHP8.4 and namespace
Diffstat (limited to 'export_wiki_pages.php')
-rwxr-xr-x[-rw-r--r--]export_wiki_pages.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/export_wiki_pages.php b/export_wiki_pages.php
index cf78b56..e1a516a 100644..100755
--- a/export_wiki_pages.php
+++ b/export_wiki_pages.php
@@ -13,9 +13,9 @@
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
-include_once( UTIL_PKG_INCLUDE_PATH.'zip_lib.php' );
-include_once( WIKI_PKG_INCLUDE_PATH.'export_lib.php' );
+require_once '../kernel/includes/setup_inc.php';
+include_once UTIL_PKG_INCLUDE_PATH.'zip_lib.php';
+include_once WIKI_PKG_INCLUDE_PATH.'export_lib.php';
if (!$gBitUser->hasPermission( 'p_wiki_admin' ))
die;
if (!isset($_REQUEST["page_id"])) {
@@ -23,14 +23,10 @@ if (!isset($_REQUEST["page_id"])) {
$exportlib->MakeWikiZip( TEMP_PKG_PATH.$exportName );
header ("location: ".TEMP_PKG_URL.$exportName );
} else {
- if (isset($_REQUEST["all"]))
- $all = 0;
- else
- $all = 1;
+ $all = isset($_REQUEST["all"]) ? 0 : 1;
$data = $exportlib->export_wiki_page($_REQUEST["page_id"], $all);
$pageId = $_REQUEST["page_id"];
header ("Content-type: application/unknown");
header ("Content-Disposition: inline; filename=$pageId");
echo $data;
}
-?>