summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2011-07-06 00:29:44 -0400
committerspiderr <spider@viovio.com>2011-07-06 00:29:44 -0400
commit3ac5b591b68d08d2f4e28f4c3ab7aefb1ba436e6 (patch)
treea8c606b50bf4b6314489841064b807a743beba1f
parentfa551eeb80a593dc9d2f385d733e8a1872216fa0 (diff)
downloadwiki-3ac5b591b68d08d2f4e28f4c3ab7aefb1ba436e6.tar.gz
wiki-3ac5b591b68d08d2f4e28f4c3ab7aefb1ba436e6.tar.bz2
wiki-3ac5b591b68d08d2f4e28f4c3ab7aefb1ba436e6.zip
try to fix print to silence errors
-rw-r--r--print.php7
-rw-r--r--templates/print.tpl2
2 files changed, 4 insertions, 5 deletions
diff --git a/print.php b/print.php
index 7c5a510..71686ab 100644
--- a/print.php
+++ b/print.php
@@ -14,15 +14,14 @@
* required setup
*/
require_once( '../kernel/setup_inc.php' );
-include_once( WIKI_PKG_PATH.'BitPage.php');
-
$gBitSystem->verifyPackage( 'wiki' );
-$gContent->verifyViewPermission();
-// If the page doesn't exist then display an error
$requirePage = TRUE;
include( WIKI_PKG_PATH.'lookup_page_inc.php' );
+// If the page doesn't exist then display an error
+$gContent->verifyViewPermission();
+
// Check if we have to perform an action for this page
// for example lock/unlock
if (isset($_REQUEST["action"])) {
diff --git a/templates/print.tpl b/templates/print.tpl
index e058d21..833fe30 100644
--- a/templates/print.tpl
+++ b/templates/print.tpl
@@ -1,7 +1,7 @@
{include file="bitpackage:kernel/header.tpl"}
<div id="bitprint">
- {include file=$mid}
+ {include file="bitpackage:wiki/center_wiki_page.tpl"}
</div>
{include file="bitpackage:kernel/footer.tpl"}