From 51eea1c5e113e25683109b3544d847ee0668d921 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 19 Sep 2019 09:17:18 +0000
Subject: [PATCH] Zmiana adresu Z39 Biblioteki Narodowej

---
 includes/okladki.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/includes/okladki.php b/includes/okladki.php
index 1761040..e9f0626 100644
--- a/includes/okladki.php
+++ b/includes/okladki.php
@@ -33,7 +33,7 @@
 	}
 	
 	static function librarything($ISBN, $dir = 'covers') {
-		if(!function_exists('curl_init') || !ksiazki::$LT_API) {
+		if(!function_exists('curl_init') || !config::$lt_api) {
 			return FALSE;
 		}
 		
@@ -49,7 +49,7 @@
 			}
 		}
 		
-		$get = 'http://www.librarything.com/devkey/'.ksiazki::$LT_API.'/'.($dir=='covers_big' ? 'large' : 'small').'/isbn/'.$ISBN10;
+		$get = 'http://www.librarything.com/devkey/'.config::$lt_api.'/'.($dir=='covers_big' ? 'large' : 'small').'/isbn/'.$ISBN10;
 		$curl = curl_init($get);
 		curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
 		curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
@@ -152,7 +152,7 @@
 				$image = imagecreatefromxpm($file);
 			break;
 			default:
-				error::add('Nieznany format obrazka: '.$type.'!');
+				errorclass::add('Nieznany format obrazka: '.$type.'!');
 				return FALSE;
 			break;
 		}

--
Gitblit v1.9.1