summaryrefslogtreecommitdiff
path: root/article_history.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:28:52 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:28:52 +0100
commit3cb0ce6c7e88d2b46847ad101c32969a50226739 (patch)
tree62632ef9b79b82777878eba5dbeb41c051d8aa58 /article_history.php
parenta77efe016535086907ffd1d9f01f756333774583 (diff)
downloadarticles-3cb0ce6c7e88d2b46847ad101c32969a50226739.tar.gz
articles-3cb0ce6c7e88d2b46847ad101c32969a50226739.tar.bz2
articles-3cb0ce6c7e88d2b46847ad101c32969a50226739.zip
php-cs-fixer updates to php8.5 style
Diffstat (limited to 'article_history.php')
-rwxr-xr-xarticle_history.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/article_history.php b/article_history.php
index cf1b040..542d958 100755
--- a/article_history.php
+++ b/article_history.php
@@ -17,7 +17,6 @@
* required setup
*/
require_once '../kernel/includes/setup_inc.php';
-use Bitweaver\Articles\BitArticle;
use Bitweaver\KernelTools;
$gBitSystem->verifyPackage( 'articles' );
@@ -38,7 +37,7 @@ if( !$gContent->isValid() || empty( $gContent->mInfo ) ) {
// additionally we need to check if this article is a submission and see if user has perms to view it.
if( $gContent->getField( 'status_id' ) != ARTICLE_STATUS_APPROVED && !( $gContent->hasUserPermission( 'p_articles_update_submission' ) || $gBitUser->isAdmin() ) ) {
$gBitSmarty->assign( 'msg', KernelTools::tra( "Permission denied you cannot view this article" ) );
- $gBitSystem->display( "error.tpl" , NULL, array( 'display_mode' => 'display' ));
+ $gBitSystem->display( "error.tpl" , NULL, [ 'display_mode' => 'display' ]);
die;
}
@@ -59,4 +58,4 @@ $gBitSmarty->assign( 'numPages', $numPages );
// Display the template
$gBitSmarty->assign( 'gContent', $gContent );
-$gBitSystem->display( 'bitpackage:articles/article_history.tpl', NULL, array( 'display_mode' => 'display' ));
+$gBitSystem->display( 'bitpackage:articles/article_history.tpl', NULL, [ 'display_mode' => 'display' ]);