From 09a6fa461cc20b59f0c3ad72433c67f8dba1df87 Mon Sep 17 00:00:00 2001 From: Johnathan Howard Date: Tue, 19 Jul 2016 12:34:35 -0400 Subject: [PATCH] Using the __construct method as the constructor for the phpFlickr_pager and phpFlickr classes. Constructors with the same name as their class is deprecated in PHP7. See here for more info: http://php.net/manual/en/migration70.deprecated.php --- phpFlickr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpFlickr.php b/phpFlickr.php index 975371e..b680340 100644 --- a/phpFlickr.php +++ b/phpFlickr.php @@ -58,7 +58,7 @@ class phpFlickr { */ var $max_cache_rows = 1000; - function phpFlickr ($api_key, $secret = NULL, $die_on_error = false) { + function __construct ($api_key, $secret = NULL, $die_on_error = false) { //The API Key must be set before any calls can be made. You can //get your own at https://www.flickr.com/services/api/misc.api_keys.html $this->api_key = $api_key; @@ -1704,7 +1704,7 @@ class phpFlickr_pager { var $total = null, $page = 0, $pages = null, $photos, $_extra = null; - function phpFlickr_pager($phpFlickr, $method = null, $args = null, $per_page = 30) { + function __construct($phpFlickr, $method = null, $args = null, $per_page = 30) { $this->per_page = $per_page; $this->method = $method; $this->args = $args;