Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use just one connection to db. bugzid:106562.

  • Loading branch information...
commit 9abf8948dd7a87f1dd5588bb1d15d1ad7eee8f5d 1 parent 4630b6d
@aklaswad aklaswad authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/MT/Object.pm
View
4 lib/MT/Object.pm
@@ -159,9 +159,7 @@ sub install_properties {
$props->{get_driver} ||= sub {
require MT::ObjectDriverFactory;
- my $coderef = MT::ObjectDriverFactory->driver_for_class($class);
- $class->get_driver($coderef);
- return $coderef->(@_);
+ return MT::ObjectDriverFactory->instance;
};
$class->SUPER::install_properties($props);
Please sign in to comment.
Something went wrong with that request. Please try again.