]> 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:38:16 +0000 (09:38 -0800)
commit2da531d7d65044f3093eafd72b73a08e1cf67fd5
tree3f6c77dc807728e1ec852ee2f2209623233d9617
parent84ed094f40d4087704fc3354ea4c3743b1447331
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]