diff options
Diffstat (limited to 'view_movement.php')
| -rw-r--r-- | view_movement.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/view_movement.php b/view_movement.php index 395fce0..eca7f01 100644 --- a/view_movement.php +++ b/view_movement.php @@ -23,6 +23,9 @@ $gBitSystem->setCanonicalLink( $gContent->getDisplayUrl() ); $gContent->loadXrefInfo(); $gBitSmarty->assign( 'gXrefInfo', $gContent->mXrefInfo ); -$gBitSmarty->assign( 'isReqn', ( ( $gContent->mInfo['ref_type'] ?? '' ) === 'REQN' ) ); +$refType = $gContent->mInfo['ref_type'] ?? ''; +$gBitSmarty->assign( 'isReqn', $refType === 'REQN' ); +$gBitSmarty->assign( 'isPbld', $refType === 'PBLD' ); +$gBitSmarty->assign( 'isBuild', in_array( $refType, [ 'REQN', 'PBLD' ] ) ); $gBitSystem->display( 'bitpackage:stock/view_movement.tpl', $gContent->getTitle() ); |
