Skip to content

Commit

Permalink
Merge pull request #3 from humhub-contrib/enh/fixes-improvements
Browse files Browse the repository at this point in the history
Fixes and improvements
  • Loading branch information
luke- authored Jun 12, 2023
2 parents d997bce + f04617b commit aa22a10
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 17 deletions.
1 change: 0 additions & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ class Events extends BaseObject
{

}

4 changes: 0 additions & 4 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@
class Module extends \humhub\components\Module
{
}




2 changes: 0 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
'class' => 'humhub\modules\profiler\Module',
'namespace' => 'humhub\modules\profiler',
];
?>

2 changes: 1 addition & 1 deletion controllers/DashboardStreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ public function actionRunMemberDeprecated()

$this->printResult($competing);
}
}
}
5 changes: 3 additions & 2 deletions controllers/FixtureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public function init()
'file/file' => 100,
'content/contentcontainer' => function() {
return count(ContentContainerProvider::$container);
}
},
'user/group' => 1,
];
}

Expand Down Expand Up @@ -105,4 +106,4 @@ protected function findTemplatesFiles(array $templatesNames = [])
return $result;
}

}
}
2 changes: 1 addition & 1 deletion controllers/GalleryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ protected function printResultRow($title, $value, $color = Console::FG_GREEN)
{
$this->stdout(sprintf("%-30.30s| %5f \n", $title,$value), $color);
}
}
}
2 changes: 1 addition & 1 deletion controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ protected function getUser()
{
return User::findOne(['id' => $this->userId]);
}
}
}
2 changes: 1 addition & 1 deletion controllers/StreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ public function actionRun()

$this->cli_beep();
}
}
}
4 changes: 2 additions & 2 deletions fixtures/GroupFixtrue.php → fixtures/GroupFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use humhub\modules\user\models\Group;
use yii\test\ActiveFixture;

class GroupFixtrue extends ActiveFixture
class GroupFixture extends ActiveFixture
{
public $modelClass = Group::class;
public $dataFile = '@profiler/fixtures/data/user/group.php';
}
}
1 change: 0 additions & 1 deletion fixtures/templates/space/space.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
'join_policy' => $joinPolicity,
'visibility' => $visibility,
'status' => $status,
'tags' => null,
'created_at' => $faker->dateTimeBetween('-2 years', '-1 years')->format('Y-m-d H:i:s'),
'created_by' => 1,
'updated_at' => $faker->dateTimeBetween('-1 years', '-1 months')->format('Y-m-d H:i:s'),
Expand Down
19 changes: 19 additions & 0 deletions fixtures/templates/user/group.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @var $faker \Faker\Generator
* @var $index integer
*/

return [
'id' => $index + 1,
'name' => 'Administrators',
'description' => 'Default group for administrators of this HumHub Installation',
'is_admin_group' => 1,
'is_default_group' => 0,
'is_protected' => 0,
'show_at_registration' => 0,
'show_at_directory' => 0,
'sort_order' => 100,
'notify_users' => 0,
];
1 change: 0 additions & 1 deletion fixtures/templates/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
'email' => $faker->unique()->email,
'contentcontainer_id' => $containerInfo['id'],
'auth_mode' => 'local',
'tags' => null,
'created_by' => null,
'language' => 'en-US',
'created_at' => $faker->dateTimeBetween('-2 years', '-1 years')->format('Y-m-d H:i:s'),
Expand Down

0 comments on commit aa22a10

Please sign in to comment.