summaryrefslogtreecommitdiff
path: root/orphan_pages.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-07-06 16:22:14 +0000
committerChristian Fowler <spider@viovio.com>2007-07-06 16:22:14 +0000
commitd3463938685950b16d2cf6ce93d0fd1d8c1da3fb (patch)
treea39a4d5a5f1b923ea12106c3d76fc8e547c86b57 /orphan_pages.php
parent89a8c6defda32eac1e5b8aa63e73bb36da0df77e (diff)
downloadwiki-d3463938685950b16d2cf6ce93d0fd1d8c1da3fb.tar.gz
wiki-d3463938685950b16d2cf6ce93d0fd1d8c1da3fb.tar.bz2
wiki-d3463938685950b16d2cf6ce93d0fd1d8c1da3fb.zip
move to gContent perm functions so assigned content permissions work properly
Diffstat (limited to 'orphan_pages.php')
-rw-r--r--orphan_pages.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/orphan_pages.php b/orphan_pages.php
index 2af4054..794d762 100644
--- a/orphan_pages.php
+++ b/orphan_pages.php
@@ -1,8 +1,8 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/orphan_pages.php,v 1.12 2007/03/20 16:56:34 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/orphan_pages.php,v 1.13 2007/07/06 16:22:14 spiderr Exp $
*
- * $Id: orphan_pages.php,v 1.12 2007/03/20 16:56:34 spiderr Exp $
+ * $Id: orphan_pages.php,v 1.13 2007/07/06 16:22:14 spiderr Exp $
* @package wiki
* @subpackage functions
*/
@@ -17,7 +17,7 @@ include_once( WIKI_PKG_PATH.'BitPage.php' );
$gBitSystem->verifyPackage( 'wiki' );
$gBitSystem->verifyFeature( 'wiki_list_orphans' );
-$gBitSystem->verifyPermission( 'p_wiki_view_page' );
+$gContent->verifyPermission( 'p_wiki_view_page' );
/* mass-remove:
the checkboxes are sent as the array $_REQUEST["checked[]"], values are the wiki-PageNames,
@@ -29,7 +29,7 @@ $gBitSystem->verifyPermission( 'p_wiki_view_page' );
if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQUEST["batch_submit"] == "remove_pages" ) {
// Now check permissions to remove the selected pages
- $gBitSystem->verifyPermission( 'p_wiki_remove_page' );
+ $gContent->verifyPermission( 'p_wiki_remove_page' );
if( !empty( $_REQUEST['cancel'] )) {
// user cancelled - just continue on, doing nothing