Update the Mood of Service controller to use the updated DW::Mood code.

        Patch by exor674. 

diffs (20 lines):

diff -r 29f13c2dc059 -r e98efcb4f346 cgi-bin/DW/Controller/Latest/Mood.pm
--- a/cgi-bin/DW/Controller/Latest/Mood.pm      Thu Jun 17 15:02:55 2010 +0800
+++ b/cgi-bin/DW/Controller/Latest/Mood.pm      Thu Jun 17 15:05:20 2010 +0800
@@ -19,6 +19,7 @@ use DW::Routing;
 use DW::Routing;
 use DW::Template;
 use DW::Request;
+use DW::Mood;
 use JSON;
 
 DW::Routing->register_string( "/latest/mood", \&mood_handler );
@@ -49,7 +50,7 @@ sub mood_handler {
         my $score = 0;
         my $count = scalar @$moods;
 
-        my $metadata = LJ::get_moods();
+        my $metadata = DW::Mood->get_moods;
 
         foreach my $moodid ( @$moods ) {
             $score += $metadata->{$moodid}->{weight} || 50;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to