Skip to content

Commit

Permalink
fixup Enable classloader for CRM_*_DAO_Base if there are -any- schema…
Browse files Browse the repository at this point in the history
…-php files
  • Loading branch information
totten committed Sep 17, 2024
1 parent e459b65 commit 6d99fa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function schema() {
<?php if (\Civix::checker()->hasMixinLibrary()) { ?>
pathload()->addSearchDir(__DIR__ . '/mixin/lib');
<?php } ?>
<?php if (\Civix::checker()->hasSchemaPhp()) { ?>
<?php if (\Civix::checker()->hasSchemaPhp() || \Civix::checker()->hasMixinLibrary('civimix-schema@5')) { ?>
spl_autoload_register('_<?php echo $mainFile ?>_civix_class_loader', TRUE, TRUE);

function _<?php echo $mainFile ?>_civix_class_loader($class) {
Expand Down

0 comments on commit 6d99fa8

Please sign in to comment.