]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmess...
authorRobin Millette <millette@controlyourself.ca>
Mon, 9 Feb 2009 15:35:38 +0000 (15:35 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 9 Feb 2009 22:40:01 +0000 (17:40 -0500)
actions/newmessage.php
lib/htmloutputter.php

index f83015a372ce764502cf457e120b9d75c0229c90..82276ff341c6e6d8ea54d033fe2588aba48e21c3 100644 (file)
@@ -201,7 +201,7 @@ class NewmessageAction extends Action
 
     function showNoticeForm()
     {
-        $message_form = new MessageForm($this, $this->to, $this->content);
+        $message_form = new MessageForm($this, $this->other, $this->content);
         $message_form->show();
     }
 }
index 7780b1c19d0c3af05980860ea1d3ae46efcb8a84..e2319b1fdc2a10bc54851c194d6b165c84888f20 100644 (file)
@@ -255,7 +255,7 @@ class HTMLOutputter extends XMLOutputter
         foreach ($content as $value => $option) {
             if ($value == $selected) {
                 $this->element('option', array('value' => $value,
-                                               'selected' => $value),
+                                               'selected' => 'selected'),
                                $option);
             } else {
                 $this->element('option', array('value' => $value), $option);