Browse Source

use constant

redmatrix 4 years ago
parent
commit
8b3c099a12
3 changed files with 10 additions and 10 deletions
  1. 8 8
      README.md
  2. 1 1
      boot.php
  3. 1 1
      include/network.php

File diff suppressed because it is too large
+ 8 - 8
README.md


+ 1 - 1
boot.php

@@ -454,7 +454,7 @@ define ( 'TERM_OBJ_APP',     7 );
 /**
  * various namespaces we may need to parse
  */
-
+define ( 'PROTOCOL_ZOT',              'http://purl.org/zot/protocol' );
 define ( 'NAMESPACE_ZOT',             'http://purl.org/zot' );
 define ( 'NAMESPACE_DFRN' ,           'http://purl.org/macgirvin/dfrn/1.0' );
 define ( 'NAMESPACE_THREAD' ,         'http://purl.org/syndication/thread/1.0' );

+ 1 - 1
include/network.php

@@ -1089,7 +1089,7 @@ function discover_by_webbie($webbie) {
 				// If we discover zot - don't search further; grab the info and get out of
 				// here. 
 
-				if($link['rel'] == 'http://purl.org/zot/protocol') {
+				if($link['rel'] === PROTOCOL_ZOT) {
 					logger('discover_by_webbie: zot found for ' . $webbie, LOGGER_DEBUG);
 					if(array_key_exists('zot',$x) && $x['zot']['success'])
 						$i = import_xchan($x['zot']);