Ticket #482: tagdiff.txt

File tagdiff.txt, 669 bytes (added by ear1grey, 5 years ago)

Diff which adds domain lookup to the get_page_tag_link method of template-functions.php

Line 
1Index: template-functions.php
2===================================================================
3--- template-functions.php      (revision 544)
4+++ template-functions.php      (working copy)
5@@ -1111,9 +1111,9 @@
6 
7 function get_tag_page_link() {
8        if ( bb_get_option('mod_rewrite') )
9-               return bb_get_option( 'tagpath' ) . 'tags/';
10+               return bb_get_option('domain') . bb_get_option( 'tagpath' ) . 'tags/';
11        else
12-               return bb_get_option( 'tagpath' ) . 'tags.php';
13+               return bb_get_option('domain') . bb_get_option( 'tagpath' ) . 'tags.php';
14 }
15 
16 function tag_link( $id = 0, $page = 1 ) {