Skip to content

Commit

Permalink
Merge pull request #27 from humhub-contrib/fix-resources-path-v17
Browse files Browse the repository at this point in the history
Fix for dashboard error
  • Loading branch information
luke- authored Nov 14, 2024
2 parents 3aed21a + f6f20c3 commit a2f7c77
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions assets/Assets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/

namespace humhub\modules\mostactiveusers\assets;

use yii\web\AssetBundle;

class Assets extends AssetBundle
{
/**
* @inheritdoc
*/
public $sourcePath = '@mostactiveusers/resources';

/**
* @inheritdoc
*/
public $css = [
'css/mostactiveusers.css',
];
}
3 changes: 1 addition & 2 deletions widgets/views/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use yii\helpers\Html;

humhub\modules\mostactiveusers\Assets::register($this);
humhub\modules\mostactiveusers\assets\Assets::register($this);
?>
<div class="panel panel-default" id="mostactiveusers-panel">

Expand Down Expand Up @@ -38,4 +38,3 @@
?>
</div>
</div>

0 comments on commit a2f7c77

Please sign in to comment.