From: Andrew Dolgov Date: Wed, 30 Mar 2016 06:56:11 +0000 (+0300) Subject: lib/gettext: use proper constructor X-Git-Tag: 16.8~39 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=00b6b66827c5ce0c103399f2742581fa90d50a97;p=tt-rss.git lib/gettext: use proper constructor --- diff --git a/lib/gettext/gettext.php b/lib/gettext/gettext.php index 5064047c..81af5550 100755 --- a/lib/gettext/gettext.php +++ b/lib/gettext/gettext.php @@ -98,7 +98,7 @@ class gettext_reader { * @param object Reader the StreamReader object * @param boolean enable_cache Enable or disable caching of strings (default on) */ - function gettext_reader($Reader, $enable_cache = true) { + function __construct($Reader, $enable_cache = true) { // If there isn't a StreamReader, turn on short circuit mode. if (! $Reader || isset($Reader->error) ) { $this->short_circuit = true;