Use __construct syntax instead of PHP4 syntax. Someone said it was causing problems...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 4 Jun 2007 22:26:15 +0000 (22:26 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 4 Jun 2007 22:26:15 +0000 (22:26 +0000)
(This is too trivial for RELEASE-NOTES.)

includes/BagOStuff.php

index 2a04b9d..5469bef 100644 (file)
@@ -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;
        }