Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -1,6 +1,6 @@
<?php
/**
* @brief Content Router extension: Reviews
* @brief Content Router extension: Products & Reviews
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
@@ -19,7 +19,7 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
}
/**
* @brief Content Router extension: Reviews
* @brief Content Router extension: Products & Reviews
*/
class _Reviews
{
@@ -36,19 +36,9 @@ class _Reviews
*/
public function __construct( $member = NULL )
{
if( !isset( \IPS\Data\Store::i()->nexusPackagesWithReviews ) )
if ( ( $member === NULL or $member->canAccessModule( \IPS\Application\Module::get( 'nexus', 'store', 'front' ) ) ) )
{
\IPS\Data\Store::i()->nexusPackagesWithReviews = \IPS\Db::i()->select( 'COUNT(*)', 'nexus_packages', array( 'p_store=1 AND p_reviewable=1' ) )->first();
}
if ( ( $member === NULL or $member->canAccessModule( \IPS\Application\Module::get( 'nexus', 'store', 'front' ) ) ) and \IPS\Data\Store::i()->nexusPackagesWithReviews > 0 )
{
$this->classes[] = 'IPS\nexus\Package\Review';
$this->classes[] = 'IPS\nexus\Package\Item';
}
}
/**
* @brief Item Classes for embed only
*/
public $embeddableContent = array( 'IPS\nexus\Package\Item' );
}