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
jdalsem committed Oct 26, 2023
1 parent 9749e20 commit 331fcbb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Static
======

![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/static/actions/workflows/lint.yml/badge.svg?event=push)
[![Latest Stable Version](https://poser.pugx.org/coldtrick/static/v/stable.svg)](https://packagist.org/packages/coldtrick/static)
[![License](https://poser.pugx.org/coldtrick/static/license.svg)](https://packagist.org/packages/coldtrick/static)
Expand Down
11 changes: 1 addition & 10 deletions classes/ColdTrick/StaticPages/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ public static function outOfDateNotification(\Elgg\Event $event) {
if (!static_out_of_date_enabled()) {
return;
}

echo 'Starting Static out-of-date' . PHP_EOL;
elgg_log('Starting Static out-of-date', 'NOTICE');


$time = $event->getParam('time', time());
$days = (int) elgg_get_plugin_setting('out_of_date_days', 'static');

Expand Down Expand Up @@ -120,16 +117,10 @@ public static function outOfDateNotification(\Elgg\Event $event) {
});

if (empty($users)) {
echo 'Done with Static out-of-date' . PHP_EOL;
elgg_log('Done with Static out-of-date', 'NOTICE');

return;
}

self::sendNotifications($users);

echo 'Done with Static out-of-date' . PHP_EOL;
elgg_log('Done with Static out-of-date', 'NOTICE');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion classes/ColdTrick/StaticPages/Menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function registerAdminHeaderMenuItems(\Elgg\Event $event) {
'name' => 'static_all',
'href' => elgg_generate_url('collection:object:static:all'),
'text' => elgg_echo('static:all'),
'parent_name' => 'administer_utilities',
'parent_name' => 'utilities',
]);

return $return_value;
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
2 changes: 1 addition & 1 deletion composer.lock

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

0 comments on commit 331fcbb

Please sign in to comment.