Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -92,6 +92,7 @@ class Downloads extends Block
|
||||
*/
|
||||
public function edit(): string
|
||||
{
|
||||
$output = '';
|
||||
switch ( Request::i()->chart )
|
||||
{
|
||||
case 'downloads':
|
||||
@@ -138,7 +139,7 @@ class Downloads extends Block
|
||||
$output = ( Request::i()->isAjax() and isset( Request::i()->_graph ) ) ? (string) $downloadsChart : Theme::i()->getTemplate( 'stats', 'downloads' )->graphs( (string) $downloadsChart );
|
||||
break;
|
||||
|
||||
case 'bandwidth_use':
|
||||
case 'bandwidth':
|
||||
$bandwidthChart = new Database( Url::internal( "app=core&module=members&controller=members&do=editBlock&block=IPS\\downloads\\extensions\\core\\MemberACPProfileContentTab\\Downloads&id={$this->member->member_id}&chart=bandwidth_use&_graph=1" ), 'downloads_downloads', 'dtime', '', array(
|
||||
'vAxis' => array( 'title' => '(' . Member::loggedIn()->language()->addToStack( 'filesize_raw_k' ) . ')' ),
|
||||
'backgroundColor' => '#ffffff',
|
||||
|
||||
@@ -27,6 +27,13 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
*/
|
||||
class Files extends ModeratorPermissionsAbstract
|
||||
{
|
||||
public function getPermissions( array $toggles ): array
|
||||
{
|
||||
/* Leave this empty because we are going to just add to the existing Downloads tab */
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get Permissions
|
||||
*
|
||||
@@ -45,7 +52,7 @@ class Files extends ModeratorPermissionsAbstract
|
||||
* @endcode
|
||||
* @return array
|
||||
*/
|
||||
public function getPermissions( array $toggles ): array
|
||||
public function getContentPermissions( array $toggles ): array
|
||||
{
|
||||
return array(
|
||||
'can_make_purchasable' => 'YesNo',
|
||||
|
||||
Reference in new issue
Block a user