forked from GNUsocial/gnu-social
We can now do late static binding (PHP >= 5.3)
This commit is contained in:
parent
6f4c572389
commit
b1465a7559
@ -87,9 +87,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
|
||||
*/
|
||||
function table()
|
||||
{
|
||||
// Hack for PHP 5.2 not supporting late static binding
|
||||
//$table = static::schemaDef();
|
||||
$table = call_user_func(array(get_class($this), 'schemaDef'));
|
||||
$table = static::schemaDef();
|
||||
return array_map(array($this, 'columnBitmap'), $table['fields']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user