From 00b6b66827c5ce0c103399f2742581fa90d50a97 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Mar 2016 09:56:11 +0300 Subject: [PATCH] lib/gettext: use proper constructor --- lib/gettext/gettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gettext/gettext.php b/lib/gettext/gettext.php index 5064047cb..81af55509 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;