summaryrefslogtreecommitdiff
path: root/print_multi_pages.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-01-27 21:57:53 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-01-27 21:57:53 +0000
commit45f43e05103232d9b4888a37d5bf70edc8b6c216 (patch)
tree33038cdd81db716ac59787c08f5e156b8313b08f /print_multi_pages.php
parent4352690a0d36f924caa3e1b739d53f8da9d6875e (diff)
downloadwiki-45f43e05103232d9b4888a37d5bf70edc8b6c216.tar.gz
wiki-45f43e05103232d9b4888a37d5bf70edc8b6c216.tar.bz2
wiki-45f43e05103232d9b4888a37d5bf70edc8b6c216.zip
replace old code with new versions - we need to stop babysitting outdated code
Diffstat (limited to 'print_multi_pages.php')
-rw-r--r--print_multi_pages.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/print_multi_pages.php b/print_multi_pages.php
index 48fcaee..aa569d2 100644
--- a/print_multi_pages.php
+++ b/print_multi_pages.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.3 2005/08/01 18:42:04 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.4 2006/01/27 21:57:53 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: print_multi_pages.php,v 1.3 2005/08/01 18:42:04 squareing Exp $
+ * $Id: print_multi_pages.php,v 1.4 2006/01/27 21:57:53 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -18,11 +18,9 @@
*/
require_once( '../bit_setup_inc.php' );
require_once( WIKI_PKG_PATH.'BitPage.php' );
-if ($feature_wiki_multiprint != 'y') {
- $gBitSmarty->assign('msg', tra("This feature is disabled").": feature_wiki_multiprint");
- $gBitSystem->display( 'error.tpl' );
- die;
-}
+
+$gBitSystem->verifyFeature( 'feature_wiki_multiprint' );
+
if (!isset($_REQUEST["printpages"])) {
$gBitSmarty->assign('msg', tra("No pages indicated"));
$gBitSystem->display( 'error.tpl' );
@@ -30,8 +28,8 @@ if (!isset($_REQUEST["printpages"])) {
} else {
$printpages = unserialize(urldecode($_REQUEST["printpages"]));
}
+
if (isset($_REQUEST["print"])) {
-
// Create XMLRPC object
$pages = array();
foreach( $printpages as $contentId ) {