---
C4/Context.pm | 3 ---
t/db_dependent/HoldsQueue.t | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/C4/Context.pm b/C4/Context.pm
index 251299d..9ce6c74 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -523,9 +523,6 @@ with this method.
# flushing the caching mechanism.
my %sysprefs;
-sub _flush_preferences {
- %sysprefs = ();
-}
sub preference {
my $self = shift;
diff --git a/t/db_dependent/HoldsQueue.t b/t/db_dependent/HoldsQueue.t
index 7e882db..b130bac 100755
--- a/t/db_dependent/HoldsQueue.t
+++ b/t/db_dependent/HoldsQueue.t
@@ -152,7 +152,7 @@ sub test_queue {
$test_name = "$test_name (".($use_cost_matrix ? "" : "don't")." use cost
matrix)";
$use_cost_matrix_sth->execute($use_cost_matrix);
- C4::Context->_flush_preferences();
+ C4::Context->clear_syspref_cache();
C4::HoldsQueue::CreateQueue();
my $results = $dbh->selectall_arrayref($test_sth, { Slice => {} }); #
should be only one
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/