From 9177c0461f80090cee62973c6b604cb96b7b61b4 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 4 Jun 2007 22:26:15 +0000 Subject: [PATCH] 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.) --- includes/BagOStuff.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1