Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 82eb2ed

Browse files
committed
syntax bugfix
1 parent 88d808e commit 82eb2ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

httpBL/plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: HTTP:BL
44
Plugin URI: https://github.com/joshp23/YOURLS-httpBL
55
Description: An implementation of Project Honeypot's http:BL for YOURLS
6-
Version: 2.0.4
6+
Version: 2.0.5
77
Author: Josh Panter
88
Author URI: https://unfettered.net
99
**/
@@ -24,12 +24,12 @@ function httpBL_add_pages() {
2424
// Maybe insert some JS and CSS files to head
2525
yourls_add_action( 'html_head', 'httpBL_head' );
2626
function httpBL_head() {
27-
if ( YOURLS_JP23_HEAD_FILES == null ) {
27+
if ( defined('YOURLS_JP23_HEAD_FILES') == false ) {
2828
define( 'YOURLS_JP23_HEAD_FILES', true );
29-
29+
$home = YOURLS_SITE;
3030
echo "\n<! --------------------------JP23_HEAD_FILES Start-------------------------- >\n";
31-
echo "<link rel=\"stylesheet\" href=\"".yourls_site_url()."/css/infos.css?v=".YOURLS_VERSION."\" type=\"text/css\" media=\"screen\" />\n";
32-
echo "<script src=\"".yourls_site_url()."/js/infos.js?v=".YOURLS_VERSION."\" type=\"text/javascript\"></script>\n";
31+
echo "<link rel=\"stylesheet\" href=\"".$home."/css/infos.css?v=".YOURLS_VERSION."\" type=\"text/css\" media=\"screen\" />\n";
32+
echo "<script src=\"".$home."/js/infos.js?v=".YOURLS_VERSION."\" type=\"text/javascript\"></script>\n";
3333
echo "<! --------------------------JP23_HEAD_FILES END---------------------------- >\n";
3434
}
3535
}

0 commit comments

Comments
 (0)