]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Break TableDef, ColumnDef classes to separate files so autoloader can find them.
authorBrion Vibber <brion@pobox.com>
Tue, 24 Nov 2009 17:38:16 +0000 (09:38 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 24 Nov 2009 17:40:47 +0000 (09:40 -0800)
commit2fabf586c77ca64562f2f126cf7a734fc4459c54
tree996a47c1e91e753120c8df2fc1d6e1507ad73087
parent979e0a14aeaa5617e843c155ae1a1928d0f6c398
Break TableDef, ColumnDef classes to separate files so autoloader can find them.

With $config['db']['schemacheck'] set to 'script' in live deployment, Schema class wasn't being preloaded for us; the uses of TableDef by plugins for DataObject configuration would then fail because the class wasn't loaded. Broken to separate files, the autoloader can find all classes in either case.

PHP Fatal error:  Class 'TableDef' not found in /var/www/statusnet/plugins/OpenID/User_openid.php on line 43, referer: http://identi.ca/brionv/all
lib/columndef.php [new file with mode: 0644]
lib/schema.php
lib/tabledef.php [new file with mode: 0644]