wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9450: LJSUP-6688. userpic management page does...

Committer: gprochaev
LJSUP-6688. userpic management page doesn't alway save changes

U   trunk/cgi-bin/LJ/UserHead.pm
Modified: trunk/cgi-bin/LJ/UserHead.pm
===================================================================
--- trunk/cgi-bin/LJ/UserHead.pm	2010-08-31 10:39:39 UTC (rev 9449)
+++ trunk/cgi-bin/LJ/UserHead.pm	2010-09-01 04:20:56 UTC (rev 9450)
@@ -23,7 +23,7 @@
     my $class = shift;
     my $uh_id = shift;
 
-    my $dbh = LJ::get_db_reader();
+    my $dbh = LJ::get_db_writer();
 
     my $uh = $dbh->selectrow_hashref ("SELECT * FROM shop_userheads WHERE uh_id = $uh_id");
     return $uh ? LJ::UserHead->new ($uh) : undef;
@@ -66,7 +66,7 @@
 sub get_all_userheads {
     my $class       = shift;
 
-    my $dbh         = LJ::get_db_reader();
+    my $dbh         = LJ::get_db_writer();
     my $is_enabled  = shift || 0;
 
     my $where = $is_enabled ? " WHERE is_enabled = 1 " : "";

Tags: ljcom, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments