Skip to content

Commit 0b4ca27

Browse files
committed
changed: updated for Elgg 4.1
1 parent 1b7ff75 commit 0b4ca27

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Entity view counter
22

3-
![Elgg 4.0](https://img.shields.io/badge/Elgg-4.0-green.svg)
3+
![Elgg 4.1](https://img.shields.io/badge/Elgg-4.1-green.svg)
44
[![Build Status](https://scrutinizer-ci.com/g/ColdTrick/entity_view_counter/badges/build.png?b=master)](https://scrutinizer-ci.com/g/ColdTrick/entity_view_counter/build-status/master)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ColdTrick/entity_view_counter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ColdTrick/entity_view_counter/?branch=master)
66
[![Latest Stable Version](https://poser.pugx.org/coldtrick/entity_view_counter/v/stable.svg)](https://packagist.org/packages/coldtrick/entity_view_counter)

classes/ColdTrick/EntityViewCounter/Bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function ready() {
2323
*/
2424
protected function addViewCounter() {
2525
// extend views of configured entity types/subtypes
26-
$registered_types = get_registered_entity_types();
26+
$registered_types = elgg_entity_types_with_capability('searchable');
2727
if (empty($registered_types)) {
2828
return;
2929
}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"coldtrick/sniffs": "dev-master"
1717
},
1818
"conflict": {
19-
"elgg/elgg": "<4.0"
19+
"elgg/elgg": "<4.1"
2020
}
2121
}

composer.lock

+11-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/default/plugins/entity_view_counter/settings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use Elgg\Database\Select;
44

5-
$object_types = (array) get_registered_entity_types('object');
5+
$object_types = elgg_extract('object', elgg_entity_types_with_capability('searchable'), []);
66

77
echo elgg_view('output/longtext', [
88
'value' => elgg_echo('entity_view_counter:settings:description'),

0 commit comments

Comments
 (0)