Switched to proper global directory instead of local directory

This commit is contained in:
RJ Madsen 2017-07-06 17:31:36 -04:00
parent 7593152bcb
commit c4b40babb0
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?php <?php
use Friendica\App; use Friendica\App;
use Friendica\Core\Config;
function follow_widget($value = "") { function follow_widget($value = "") {
@ -18,6 +19,7 @@ function findpeople_widget() {
require_once 'include/Contact.php'; require_once 'include/Contact.php';
$a = get_app(); $a = get_app();
$global_dir = Config::get('system', 'directory');
if (get_config('system', 'invitation_only')) { if (get_config('system', 'invitation_only')) {
$x = get_pconfig(local_user(), 'system', 'invites_remaining'); $x = get_pconfig(local_user(), 'system', 'invites_remaining');
@ -38,7 +40,8 @@ function findpeople_widget() {
'$similar' => t('Similar Interests'), '$similar' => t('Similar Interests'),
'$random' => t('Random Profile'), '$random' => t('Random Profile'),
'$inv' => t('Invite Friends'), '$inv' => t('Invite Friends'),
'$directory' => t('View Global Directory') '$directory' => t('View Global Directory'),
'$global_dir' => $global_dir
)); ));
} }

View File

@ -7,7 +7,7 @@
</form> </form>
<div class="side-link" id="side-match-link"><a href="match" >{{$similar}}</a></div> <div class="side-link" id="side-match-link"><a href="match" >{{$similar}}</a></div>
<div class="side-link" id="side-suggest-link"><a href="suggest" >{{$suggest}}</a></div> <div class="side-link" id="side-suggest-link"><a href="suggest" >{{$suggest}}</a></div>
<div class="side-link" id="side-directory-link"><a href="directory" >{{$directory}}</a></div> <div class="side-link" id="side-directory-link"><a href={{$global_dir}} target="extlink" >{{$directory}}</a></div>
<div class="side-link" id="side-random-profile-link" ><a href="randprof" target="extlink" >{{$random}}</a></div> <div class="side-link" id="side-random-profile-link" ><a href="randprof" target="extlink" >{{$random}}</a></div>
{{if $inv}} {{if $inv}}
<div class="side-link" id="side-invite-link" ><a href="invite" >{{$inv}}</a></div> <div class="side-link" id="side-invite-link" ><a href="invite" >{{$inv}}</a></div>