Version 4.1.2

This commit is contained in:
Neo committed 2025-12-19 05:32:19 -08:00
1 parent 3ba79295ee
commit 28bd025b35
1131 files changed
+63658 -20579

No files matched your search

@@ -94,7 +94,8 @@ class _Category extends \IPS\Node\Model implements \IPS\Node\Permissions
'read' => 2,
'add' => 3,
'reply' => 4,
'rate' => 5
'rate' => 5,
'review' => 6,
);
/**
@@ -291,6 +292,8 @@ class _Category extends \IPS\Node\Model implements \IPS\Node\Permissions
$form->add( new \IPS\Helpers\Form\YesNo( 'category_allow_comments', $this->id ? $this->allow_comments : TRUE, FALSE, array( 'togglesOn' => array( 'category_approve_com' ) ), NULL, NULL, NULL, 'category_allow_comments' ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'category_approve_com', $this->approve_com, FALSE, array(), NULL, NULL, NULL, 'category_approve_com' ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'gcategory_allow_rating', $this->id ? $this->allow_rating : TRUE, FALSE ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'category_allow_reviews', $this->id ? $this->allow_reviews : FALSE, FALSE, array( 'togglesOn' => array( 'category_review_moderate' ) ) ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'category_review_moderate', $this->id ? $this->review_moderate : FALSE, FALSE, array(), NULL, NULL, NULL, 'category_review_moderate' ) );
if ( \IPS\Settings::i()->tags_enabled )
{
@@ -405,21 +408,21 @@ class _Category extends \IPS\Node\Model implements \IPS\Node\Permissions
* @brief Cached URL
*/
protected $_url = NULL;
/**
* Get URL
*
* @return \IPS\Http\Url
* @brief URL Base
*/
public function url()
{
if( $this->_url === NULL )
{
$this->_url = \IPS\Http\Url::internal( "app=gallery&module=gallery&controller=browse&category={$this->_id}", 'front', 'gallery_category', $this->name_seo );
}
return $this->_url;
}
public static $urlBase = 'app=gallery&module=gallery&controller=browse&category=';
/**
* @brief URL Base
*/
public static $urlTemplate = 'gallery_category';
/**
* @brief SEO Title Column
*/
public static $seoTitleColumn = 'name_seo';
/**
* Get "No Permission" error message