Skip to content

Commit

Permalink
changed: updated for Elgg 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 1, 2023
1 parent 4dcf338 commit e36019e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Wizard
======

![Elgg 5.0](https://img.shields.io/badge/Elgg-5.0-green.svg)
![Elgg 5.1](https://img.shields.io/badge/Elgg-5.1-green.svg)
![Lint Checks](https://github.com/ColdTrick/wizard/actions/workflows/lint.yml/badge.svg?event=push)
[![Latest Stable Version](https://poser.pugx.org/coldtrick/wizard/v/stable.svg)](https://packagist.org/packages/coldtrick/wizard)
[![License](https://poser.pugx.org/coldtrick/wizard/license.svg)](https://packagist.org/packages/coldtrick/wizard)
Expand Down
2 changes: 1 addition & 1 deletion classes/ColdTrick/Wizard/Menus/AdminHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function register(\Elgg\Event $event): ?MenuItems {
'name' => 'wizard',
'text' => elgg_echo('wizard:menu:admin'),
'href' => 'admin/administer_utilities/wizard',
'parent_name' => 'administer_utilities',
'parent_name' => 'administer',
]);

return $result;
Expand Down
7 changes: 7 additions & 0 deletions classes/ColdTrick/Wizard/Seeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ public static function getType(): string {
return \Wizard::SUBTYPE;
}

/**
* {@inheritDoc}
*/
public static function getDefaultLimit(): int {
return 5;
}

/**
* {@inheritDoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"composer/installers": "^1.0.8"
},
"conflict": {
"elgg/elgg": "<5.0"
"elgg/elgg": "<5.1"
},
"config": {
"allow-plugins": {
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion languages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'wizard:reset:confirm' => "Are you sure you wish to reset all users? This will force all users to re-do this wizard.",

'wizard:admin:repair_users' => "Remove new user flag",
'wizard:admin:repair_users:title' => "Some users might see the 'New user' wizards, dispite being a member for a long time. This will fix that issue.",
'wizard:admin:repair_users:title' => "Some users might see the 'New user' wizards, despite being a member for a long time. This will fix that issue.",

// edit
'wizard:edit:time_restrictions' => 'Time restrictions',
Expand Down
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function wizard_replace_exit(string $text): string {
function wizard_check_wizards(): ?\Wizard {
$user = elgg_get_logged_in_user_entity();
if (!$user instanceof \ElggUser) {
// only logged in users
// only logged-in users
return null;
}

Expand Down

0 comments on commit e36019e

Please sign in to comment.