]> git.mxchange.org Git - friendica.git/commitdiff
Switched to proper global directory instead of local directory
authorRJ Madsen <rjm6823@rit.edu>
Thu, 6 Jul 2017 21:31:36 +0000 (17:31 -0400)
committerRJ Madsen <rjm6823@rit.edu>
Thu, 6 Jul 2017 21:31:36 +0000 (17:31 -0400)
include/contact_widgets.php
view/templates/peoplefind.tpl

index fc1f7191badee36d998378eda4fce099aea874ea..14cb13cdee7606aa32dbfbc65fb823c6f13459ed 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\Config;
 
 function follow_widget($value = "") {
 
@@ -18,6 +19,7 @@ function findpeople_widget() {
        require_once 'include/Contact.php';
 
        $a = get_app();
+    $global_dir = Config::get('system', 'directory');
 
        if (get_config('system', 'invitation_only')) {
                $x = get_pconfig(local_user(), 'system', 'invites_remaining');
@@ -38,7 +40,8 @@ function findpeople_widget() {
                '$similar' => t('Similar Interests'),
                '$random' => t('Random Profile'),
                '$inv' => t('Invite Friends'),
-               '$directory' => t('View Global Directory')
+               '$directory' => t('View Global Directory'),
+        '$global_dir' => $global_dir
        ));
 
 }
index 0d1c6c79ba4aa7df6021f685135381c6f9b108ad..6cbe42e7370f6ad325ad86cd44ad7ee83d961618 100644 (file)
@@ -7,7 +7,7 @@
        </form>
        <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-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>
        {{if $inv}} 
        <div class="side-link" id="side-invite-link" ><a href="invite" >{{$inv}}</a></div>