From 6cba3f7a45bef8753536a47c1d282dcdcdfde68f Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 17 May 2013 15:35:03 +0000
Subject: [PATCH] Poprawki w systemie inwentaryzacji - dodanie m.in. brakujÄ…cego require()

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

diff --git a/includes/okladki.php b/includes/okladki.php
index 1761040..f525f5b 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);

--
Gitblit v1.9.1