summaryrefslogtreecommitdiff
path: root/copyrights.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-06-25 22:21:30 +0000
committerChristian Fowler <spider@viovio.com>2008-06-25 22:21:30 +0000
commit7144420dc99a55d4e8f5b81cec6200ede8c200b2 (patch)
tree4f6e2fc33f2ef268d70d293cdbaf720becaab363 /copyrights.php
parente6db2a56250bc0789190d0b22c0acc0089dedf45 (diff)
downloadwiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.tar.gz
wiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.tar.bz2
wiki-7144420dc99a55d4e8f5b81cec6200ede8c200b2.zip
change display call to use a hash for display options, add display_mode to options hash
Diffstat (limited to 'copyrights.php')
-rw-r--r--copyrights.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/copyrights.php b/copyrights.php
index 7ebab8c..f1bc295 100644
--- a/copyrights.php
+++ b/copyrights.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/copyrights.php,v 1.7 2006/04/11 13:10:33 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/copyrights.php,v 1.8 2008/06/25 22:21:29 spiderr 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: copyrights.php,v 1.7 2006/04/11 13:10:33 squareing Exp $
+ * $Id: copyrights.php,v 1.8 2008/06/25 22:21:29 spiderr Exp $
* @package wiki
* @subpackage functions
*/
@@ -32,7 +32,7 @@ if (isset($_REQUEST['addcopyright'])) {
$copyrightslib->add_copyright($gContent->mPageId, $copyrightTitle, $copyrightYear, $copyrightAuthors, $gBitUser->mUserId);
} else {
$gBitSmarty->assign('msg', tra("You must supply all the information, including title and year."));
- $gBitSystem->display( 'error.tpl' );
+ $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' ));
die;
}
}
@@ -46,7 +46,7 @@ if (isset($_REQUEST['editcopyright'])) {
$copyrightslib->edit_copyright($copyright_id, $copyrightTitle, $copyrightYear, $copyrightAuthors, $gBitUser->mUserId);
} else {
$gBitSmarty->assign('msg', tra("You must supply all the information, including title and year."));
- $gBitSystem->display( 'error.tpl' );
+ $gBitSystem->display( 'error.tpl' , NULL, array( 'display_mode' => 'display' ));
die;
}
}
@@ -62,5 +62,5 @@ if (isset($_REQUEST['action']) && isset($_REQUEST['copyright_id'])) {
$copyrights = $copyrightslib->list_copyrights( $gContent->mPageId );
$gBitSmarty->assign('copyrights', $copyrights["data"]);
// Display the template
-$gBitSystem->display( 'bitpackage:wiki/copyrights.tpl');
+$gBitSystem->display( 'bitpackage:wiki/copyrights.tpl', NULL, array( 'display_mode' => 'display' ));
?>