[Koha-bugs] [Bug 9006] New: autoload in C4::Context is a bad idea
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 1 20:09:13 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9006
Priority: P5 - low
Change sponsored?: ---
Bug ID: 9006
Assignee: gmcharlt at gmail.com
Summary: autoload in C4::Context is a bad idea
Severity: minor
Classification: Unclassified
OS: All
Reporter: jcamins at cpbibliography.com
Hardware: All
Status: NEW
Version: master
Component: Architecture, internals, and plumbing
Product: Koha
The comment in C4/Context.pm pretty much sums it up:
# AUTOLOAD
# This implements C4::Config->foo, and simply returns
# C4::Context->config("foo"), as described in the documentation for
# &config, above.
# FIXME - Perhaps this should be extended to check &config first, and
# then &preference if that fails. OTOH, AUTOLOAD could lead to crappy
# code, so it'd probably be best to delete it altogether so as not to
# encourage people to use it.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list