diff --git a/iqrcodes/assets/phpqrcode.php b/iqrcodes/assets/phpqrcode.php index 6819ec1..601c9e5 100755 --- a/iqrcodes/assets/phpqrcode.php +++ b/iqrcodes/assets/phpqrcode.php @@ -921,7 +921,7 @@ public static function jpg($frame, $filename = false, $pixelPerPoint = 4, $outer //---------------------------------------------------------------------- private static function addLogo(&$image) { $opt = iqrcodes_get_opts(); - $logoPath = YOURLS_ABSPATH."/".$opt[0]."/logo.".$opt[8]; + $logoPath = $opt[10]."/logo.".$opt[8]; if($opt[9]!=="no" && file_exists($logoPath)){ $position = $opt[7]; diff --git a/iqrcodes/plugin.php b/iqrcodes/plugin.php index 7f202fb..51f5b3e 100755 --- a/iqrcodes/plugin.php +++ b/iqrcodes/plugin.php @@ -3,7 +3,7 @@ Plugin Name: IQRCodes Plugin URI: https://github.com/joshp23/YOURLS-IQRCodes Description: Integrated QR Codes -Version: 2.1.0 +Version: 2.1.1 Author: Josh Panter Author URI: https://unfettered.net */ @@ -73,15 +73,14 @@ function iqrcodes_do_page() { $key = iqrcodes_key(); $fn = 'qrc_' . md5($base . '/V') . "." . $opt[5]; - $isLogo = glob ( YOURLS_ABSPATH."/".$opt[0]."/logo.*"); + $isLogo = glob ( $opt[10]."/logo.*"); if( isset($isLogo[1])) { $logoIs = '
There is a problem with your setup, please use the reset option or re-upload your logo image file. If this does not fix the problem then you may have to check your cache location or folder permissions.
'; } elseif( isset($isLogo[0])) { - $stamp = filemtime($isLogo[0]); - $name = basename($isLogo[0]).'?='.$stamp; - $logoIs = '