Merge pull request #494 from annando/bugfix-addon

Some forgotten include
This commit is contained in:
Hypolite Petovan 2018-01-20 16:45:55 -05:00 committed by GitHub
commit 1836f529a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,6 @@ use Friendica\Model\Profile;
require_once 'boot.php';
require_once 'include/dba.php';
require_once 'include/plugin.php';
require_once 'include/text.php';
function forumdirectory_install() {
@ -117,6 +116,7 @@ function forumdirectory_content(&$a)
intval($a->pager['start']),
intval($a->pager['itemspage'])
);
if (DBM::is_result($r)) {
if (in_array('small', $a->argv)) {
$photo = 'thumb';
@ -180,7 +180,6 @@ function forumdirectory_content(&$a)
$homepage = x($profile, 'homepage') == 1 ? t('Homepage:') : false;
$about = x($profile, 'about') == 1 ? t('About:') : false;
# $tpl = file_get_contents( dirname(__file__).'/forumdirectory_item.tpl');
$tpl = get_markup_template('forumdirectory_item.tpl', 'addon/forumdirectory/');
$entry = replace_macros($tpl, [