Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -17,6 +17,7 @@ use IPS\Dispatcher;
|
||||
use IPS\forums\Forum;
|
||||
use IPS\Member;
|
||||
use IPS\Node\Controller;
|
||||
use IPS\Node\Model;
|
||||
use IPS\Output;
|
||||
use IPS\Request;
|
||||
use OutOfRangeException;
|
||||
@@ -53,6 +54,18 @@ class forums extends Controller
|
||||
Dispatcher::i()->checkAcpPermission( 'forums_manage' );
|
||||
parent::execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the node can be a root-level
|
||||
*
|
||||
* @param Model $node
|
||||
* @return bool
|
||||
*/
|
||||
public function _canBeRoot( Model $node ) : bool
|
||||
{
|
||||
/* Only allow categories to be root level */
|
||||
return $node instanceof Forum and !$node->sub_can_post;
|
||||
}
|
||||
|
||||
/**
|
||||
* Permissions
|
||||
|
||||
@@ -120,7 +120,7 @@ class solved extends Controller
|
||||
else
|
||||
{
|
||||
Output::i()->title = Member::loggedIn()->language()->addToStack( 'menu__forums_stats_solved' );
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global', 'core' )->tabs( $tabs, $activeTab, (string)$chart, Url::internal( "app=forums&module=stats&controller=solved" ), 'tab', '', 'i-padding_3' );
|
||||
Output::i()->output = Theme::i()->getTemplate( 'global', 'core' )->tabs( $tabs, $activeTab, (string)$chart, Url::internal( "app=forums&module=stats&controller=solved" ), 'tab', '', '' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user