no more getSlave, convert code to use dbSlave instead
more form accessor fixes Form/Template.pm, all asset calls need a session var
This commit is contained in:
parent
77f9ae07b2
commit
197dacadec
9 changed files with 13 additions and 15 deletions
|
|
@ -330,7 +330,7 @@ sub processReplacements {
|
|||
$content =~ s/\Q$searchFor/$replaceWith/gs;
|
||||
}
|
||||
} else {
|
||||
my $sth = $session->db->read("select searchFor,replaceWith from replacements",$session->db->getSlave);
|
||||
my $sth = $session->db->read("select searchFor,replaceWith from replacements",$session->dbSlave);
|
||||
while (my ($searchFor,$replaceWith) = $sth->array) {
|
||||
$replacements->{$searchFor} = $replaceWith;
|
||||
$content =~ s/\Q$searchFor/$replaceWith/gs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue