diff options
| -rw-r--r-- | LibertyStructure.php | 4 | ||||
| -rw-r--r-- | content_permissions.php | 2 | ||||
| -rw-r--r-- | content_role_permissions.php | 2 | ||||
| -rw-r--r-- | display_structure_inc.php | 3 | ||||
| -rw-r--r-- | view_file.php | 2 |
5 files changed, 8 insertions, 5 deletions
diff --git a/LibertyStructure.php b/LibertyStructure.php index dc6d00a..d389935 100644 --- a/LibertyStructure.php +++ b/LibertyStructure.php @@ -376,6 +376,10 @@ class LibertyStructure extends LibertyBase { array_push( $bindVars, $pListHash['user_id'] ); } + if( empty( $pListHash['sort_mode'] ) ) { + $pListHash['sort_mode'] = 'last_modified_desc'; + } + if( !empty( $pListHash['content_type_guid'] ) ) { $mid .= " AND lc.`content_type_guid`=? "; array_push( $bindVars, $pListHash['content_type_guid'] ); diff --git a/content_permissions.php b/content_permissions.php index 44a76eb..6e9f13f 100644 --- a/content_permissions.php +++ b/content_permissions.php @@ -15,7 +15,7 @@ $gBitSystem->verifyPermission( 'p_liberty_assign_content_perms' ); require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); if( $gContent == null ) { - $gBitSystem->fatalError('Could not find the requested content.', NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); + $gBitSystem->fatalError('Could not find the requested content.', NULL, NULL, HttpStatusCodes::HTTP_GONE ); } // Process the form diff --git a/content_role_permissions.php b/content_role_permissions.php index 7c57985..0c6c467 100644 --- a/content_role_permissions.php +++ b/content_role_permissions.php @@ -15,7 +15,7 @@ $gBitSystem->verifyPermission( 'p_liberty_assign_content_perms' ); require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); if( $gContent == null ) { - $gBitSystem->fatalError('Could not find the requested content.', NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); + $gBitSystem->fatalError('Could not find the requested content.', NULL, NULL, HttpStatusCodes::HTTP_GONE ); } // Process the form diff --git a/display_structure_inc.php b/display_structure_inc.php index 67beeac..ad57084 100644 --- a/display_structure_inc.php +++ b/display_structure_inc.php @@ -18,6 +18,5 @@ if( is_object( $gContent ) && $gContent->isValid() ) { $gBitSystem->setCanonicalLink( $gContent->getDisplayUri() ); include $gContent->getRenderFile(); } else { - $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); + $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_GONE ); } - diff --git a/view_file.php b/view_file.php index 3e169e3..6391efe 100644 --- a/view_file.php +++ b/view_file.php @@ -58,6 +58,6 @@ if( $gContent = LibertyBase::getLibertyObject( $attachment['content_id'] ) ) { $gBitSystem->display( 'bitpackage:liberty/mime_view.tpl', tra( "View File" ), array( 'display_mode' => 'display' )); } else { - $gBitSystem->fatalError( 'Not Found', NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); + $gBitSystem->fatalError( 'Not Found', NULL, NULL, HttpStatusCodes::HTTP_GONE ); } ?> |
