diff options
| author | spiderr <spider@viovio.com> | 2013-04-24 13:22:46 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-24 13:22:46 -0400 |
| commit | 8e5215c3ff16cc346d333e2e435ed5d94c7e78ee (patch) | |
| tree | 9f886526a98bfb780dfdeb3274c8d54a251cf36d /edit.php | |
| parent | fb6829be2ac29b8e0253857437cbc95f305fcf26 (diff) | |
| download | wiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.tar.gz wiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.tar.bz2 wiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.zip | |
remove antiquated sandbox feature
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -24,22 +24,10 @@ unset($_REQUEST['content_id']); $_REQUEST["parse"] = false; include( WIKI_PKG_PATH.'lookup_page_inc.php' ); -$wiki_sandbox = FALSE; -if( ( !empty( $_REQUEST['page'] ) && $_REQUEST['page'] == 'SandBox' ) || ( !empty( $_REQUEST['title'] ) && $_REQUEST['title'] == 'SandBox' ) ) { - $gContent->mInfo['title'] = 'SandBox'; - $wiki_sandbox = TRUE; -} - -if( $wiki_sandbox && !$gBitSystem->isFeatureActive( 'wiki_sandbox' ) ) { - $gBitSystem->fatalError( tra( "The SandBox is disabled" )); -} elseif( !$wiki_sandbox && $gBitUser->mUserId > 0 ){ - if( $gContent->isValid() ) { - $gContent->verifyUpdatePermission(); - } else { - $gContent->verifyCreatePermission(); - } +if( $gContent->isValid() ) { + $gContent->verifyUpdatePermission(); } else { - $gBitSystem->fatalPermission( $gContent->mUpdateContentPerm ); + $gContent->verifyCreatePermission(); } //make comment count for this page available for templates @@ -419,7 +407,7 @@ function walk_and_parse( &$c, &$src, &$p ) { } } if( isset( $_REQUEST["suck_url"] ) ) { - if( $wiki_sandbox && !$gBitSystem->isFeatureActive( 'wiki_url_import' ) ) { + if( !$gBitSystem->isFeatureActive( 'wiki_url_import' ) ) { $gBitSystem->fatalError( tra( "Importing remote URLs is disabled" )); } // Suck another page and append to the end of current |
