Browse Source

Changed some function to public

Tobias Reich 9 years ago
parent
commit
864e5b97d0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      php/modules/Photo.php

+ 3 - 3
php/modules/Photo.php

@@ -152,7 +152,7 @@ class Photo extends Module {
 			if ($exists===false) {
 
 				# Set orientation based on EXIF data
-				if ($file['type']==='image/jpeg'&&isset($info['orientation'])&&$info['orientation']!==''&&isset($info['width'])&&isset($info['height'])) {
+				if ($file['type']==='image/jpeg'&&isset($info['orientation'], $info['width'], $info['height'])&&$info['orientation']!=='') {
 					if (!$this->adjustFile($path, $info)) Log::notice($this->database, __METHOD__, __LINE__, 'Could not adjust photo (' . $info['title'] . ')');
 				}
 
@@ -332,7 +332,7 @@ class Photo extends Module {
 
 	}
 
-	private function adjustFile($path, $info) {
+	public function adjustFile($path, $info) {
 
 		# Check dependencies
 		self::dependencies(isset($path, $info));
@@ -491,7 +491,7 @@ class Photo extends Module {
 
 	}
 
-	private function getInfo($url) {
+	public function getInfo($url) {
 
 		# Check dependencies
 		self::dependencies(isset($this->database, $url));