diff --git a/inc/JSON.php b/inc/JSON.php index 7f89005ff80109d44eb8ace1100f0e64327c1c47..e01488e14690e9bdfff46df0fed71225f2cf7af9 100644 --- a/inc/JSON.php +++ b/inc/JSON.php @@ -119,7 +119,7 @@ class JSON { * JSON_LOOSE_TYPE - loose typing * "{...}" syntax creates associative arrays in decode. */ - function JSON($use=JSON_STRICT_TYPE) { + function __construct($use=JSON_STRICT_TYPE) { $this->use = $use; } diff --git a/inc/JpegMeta.php b/inc/JpegMeta.php index cd082cbba832d64925d38b761bf2a30d8e239e5d..1fa4f25cec69022962830535ca5925a2daf33ef6 100644 --- a/inc/JpegMeta.php +++ b/inc/JpegMeta.php @@ -54,7 +54,7 @@ class JpegMeta { * * @author Sebastian Delmont <sdelmont@zonageek.com> */ - function JpegMeta($fileName) { + function __construct($fileName) { $this->_fileName = $fileName; diff --git a/inc/cache.php b/inc/cache.php index 68f64eaa2fd8255490709e5fe61c13112fa1eea4..1776d94cd5dbb93bb73991d31324ea293ab8202a 100644 --- a/inc/cache.php +++ b/inc/cache.php @@ -26,7 +26,7 @@ class cache { * @param string $key primary identifier * @param string $ext file extension */ - public function cache($key,$ext) { + public function __construct($key,$ext) { $this->key = $key; $this->ext = $ext; $this->cache = getCacheName($key,$ext);