mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:13:39 +00:00
Add missing include/fix zrl location
This commit is contained in:
parent
e97235353f
commit
eec158b5f3
1 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,12 @@ use Friendica\Content\Nav;
|
||||||
use Friendica\Content\Widget;
|
use Friendica\Content\Widget;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Database\DBM;
|
use Friendica\Database\DBM;
|
||||||
|
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()
|
function forumdirectory_install()
|
||||||
{
|
{
|
||||||
|
@ -74,7 +80,7 @@ function forumdirectory_content(&$a)
|
||||||
$gdirpath = Config::get('system', 'directory');
|
$gdirpath = Config::get('system', 'directory');
|
||||||
if (strlen($gdirpath)) {
|
if (strlen($gdirpath)) {
|
||||||
$globaldir = '<ul><li><div id="global-directory-link"><a href="'
|
$globaldir = '<ul><li><div id="global-directory-link"><a href="'
|
||||||
. zrl($gdirpath, true) . '">' . t('Global Directory') . '</a></div></li></ul>';
|
. Profile::zrl($gdirpath, true) . '">' . t('Global Directory') . '</a></div></li></ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$admin = '';
|
$admin = '';
|
||||||
|
|
Loading…
Reference in a new issue