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 cc1f42a commit 8bb6151
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Questions for Elgg
==================

![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/questions/actions/workflows/lint.yml/badge.svg?event=push)
[![Latest Stable Version](https://poser.pugx.org/coldtrick/questions/v/stable.svg)](https://packagist.org/packages/coldtrick/questions)
[![License](https://poser.pugx.org/coldtrick/questions/license.svg)](https://packagist.org/packages/coldtrick/questions)
Expand Down
12 changes: 0 additions & 12 deletions classes/ColdTrick/Questions/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public static function autoCloseQuestions(\Elgg\Event $event): void {
return;
}

echo 'Starting Questions auto-close processing' . PHP_EOL;
elgg_log('Starting Questions auto-close processing', 'NOTICE');

elgg_call(ELGG_IGNORE_ACCESS, function() use ($auto_close_days) {
$site = elgg_get_site_entity();

Expand Down Expand Up @@ -78,9 +75,6 @@ public static function autoCloseQuestions(\Elgg\Event $event): void {
$session_manager->removeLoggedInUser();
}
});

echo 'Finished Questions auto-close processing' . PHP_EOL;
elgg_log('Finished Questions auto-close processing', 'NOTICE');
}

/**
Expand All @@ -96,9 +90,6 @@ public static function notifyQuestionExperts(\Elgg\Event $event): void {
return;
}

echo 'Starting Questions experts todo notifications' . PHP_EOL;
elgg_log('Starting Questions experts todo notifications', 'NOTICE');

$time = (int) $event->getParam('time', time());

// get all experts
Expand Down Expand Up @@ -238,8 +229,5 @@ public static function notifyQuestionExperts(\Elgg\Event $event): void {
} else {
$session_manager->removeLoggedInUser();
}

echo 'Finished Questions experts todo notifications' . PHP_EOL;
elgg_log('Finished Questions experts todo notifications', 'NOTICE');
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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.

23 changes: 10 additions & 13 deletions views/default/questions/site.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
.elgg-menu-item-show-tags {
margin-left: auto !important;
}

.questions-tags-filter {

> .elgg-menu-container {
display: inline-block;

> .elgg-menu {
display: inline-block;
}
}

li.elgg-tag {
a {
line-height: inherit;
li.elgg-tag {
> a {
border: 1px solid $(border-color-soft);
border-radius: 3px;
padding: 0.25rem 0.5rem;

&:hover {
background-color: $(background-color-soft);
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion views/default/resources/questions/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* @var $question \ElggQuestion */
$question = get_entity($question_guid);

elgg_push_entity_breadcrumbs($question, true);
elgg_push_entity_breadcrumbs($question);

// build page elements
$form_vars = [
Expand Down
2 changes: 1 addition & 1 deletion views/default/resources/questions/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$question = get_entity($guid);

// set breadcrumb
elgg_push_entity_breadcrumbs($question, false);
elgg_push_entity_breadcrumbs($question);

// build page elements
$title = $question->getDisplayName();
Expand Down

0 comments on commit 8bb6151

Please sign in to comment.