From: Aryeh Gregor Date: Mon, 4 Jun 2007 22:26:15 +0000 (+0000) Subject: Use __construct syntax instead of PHP4 syntax. Someone said it was causing problems... X-Git-Tag: 1.31.0-rc.0~52684 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=9177c0461f80090cee62973c6b604cb96b7b61b4;p=lhc%2Fweb%2Fwiklou.git Use __construct syntax instead of PHP4 syntax. Someone said it was causing problems, but in any case we may as well. Nothing else seems to call them and they don't break my wiki at least, so it shouldn't cause problems. (This is too trivial for RELEASE-NOTES.) --- diff --git a/includes/BagOStuff.php b/includes/BagOStuff.php index 2a04b9dddc..5469bef929 100644 --- a/includes/BagOStuff.php +++ b/includes/BagOStuff.php @@ -172,7 +172,7 @@ class HashBagOStuff extends BagOStuff { */ var $bag; - function HashBagOStuff() { + function __construct() { $this->bag = array(); } @@ -222,7 +222,7 @@ abstract class SqlBagOStuff extends BagOStuff { var $table; var $lastexpireall = 0; - function SqlBagOStuff($tablename = 'objectcache') { + function __construct($tablename = 'objectcache') { $this->table = $tablename; }