summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-24 13:22:46 -0400
committerspiderr <spider@viovio.com>2013-04-24 13:22:46 -0400
commit8e5215c3ff16cc346d333e2e435ed5d94c7e78ee (patch)
tree9f886526a98bfb780dfdeb3274c8d54a251cf36d /edit.php
parentfb6829be2ac29b8e0253857437cbc95f305fcf26 (diff)
downloadwiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.tar.gz
wiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.tar.bz2
wiki-8e5215c3ff16cc346d333e2e435ed5d94c7e78ee.zip
remove antiquated sandbox feature
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php20
1 files changed, 4 insertions, 16 deletions
diff --git a/edit.php b/edit.php
index 892057d..9e59156 100644
--- a/edit.php
+++ b/edit.php
@@ -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