Skip to content

Commit 9747511

Browse files
committed
changed: updated for Elgg 6.3
1 parent e2cf9f3 commit 9747511

File tree

7 files changed

+33
-139
lines changed

7 files changed

+33
-139
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The Wire Tools
22
==============
33

4-
![Elgg 6.2](https://img.shields.io/badge/Elgg-6.2-green.svg)
4+
![Elgg 6.3](https://img.shields.io/badge/Elgg-6.3-green.svg)
55
![Lint Checks](https://github.com/ColdTrick/thewire_tools/actions/workflows/lint.yml/badge.svg?event=push)
66
[![Latest Stable Version](https://poser.pugx.org/coldtrick/thewire_tools/v/stable.svg)](https://packagist.org/packages/coldtrick/thewire_tools)
77
[![License](https://poser.pugx.org/coldtrick/thewire_tools/license.svg)](https://packagist.org/packages/coldtrick/thewire_tools)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"issues": "https://github.com/ColdTrick/thewire_tools/issues"
1111
},
1212
"conflict": {
13-
"elgg/elgg": "<6.2"
13+
"elgg/elgg": "<6.3"
1414
}
1515
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/functions.php

Lines changed: 0 additions & 134 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* View a wire post
4+
*
5+
* @uses $vars['entity'] ElggWire to show
6+
*/
7+
8+
$entity = elgg_extract('entity', $vars);
9+
if (!$entity instanceof \ElggWire) {
10+
return;
11+
}
12+
13+
// because of duplicate logic for full/summary pass through base view
14+
echo elgg_view('object/thewire', $vars);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* View a wire post in a listing/summary
4+
*
5+
* @uses $vars['entity'] ElggWire to show
6+
*/
7+
8+
$entity = elgg_extract('entity', $vars);
9+
if (!$entity instanceof \ElggWire) {
10+
return;
11+
}
12+
13+
// because of duplicate logic for full/summary pass through base view
14+
echo elgg_view('object/thewire', $vars);

views/default/widgets/thewire/content.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
'limit' => $num_display,
1717
'full_view' => false,
1818
'pagination' => false,
19-
'no_results' => elgg_echo('thewire_tools:no_result'),
20-
'widget_more' => elgg_view_url($widget->getURL(), elgg_echo('thewire:moreposts'))
19+
'no_results' => true,
20+
'widget_more' => elgg_view_url($widget->getURL(), elgg_echo('thewire:moreposts')),
2121
];
2222

2323
$owner_entity = $widget->getOwnerEntity();

0 commit comments

Comments
 (0)