Diff of /branches/2.5.4/cgi-bin/yabb2/Sources/Post.pm [r1077] .. [r1078]  Maximize  Restore

Switch to side-by-side view

--- a/branches/2.5.4/cgi-bin/yabb2/Sources/Post.pm
+++ b/branches/2.5.4/cgi-bin/yabb2/Sources/Post.pm
@@ -17,7 +17,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.5.4';
 
-$postpmver = 'YaBB 2.5.4 $Revision: 1071 $';
+$postpmver = 'YaBB 2.5.4 $Revision: 1078 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 LoadLanguage('Post');
@@ -296,8 +296,10 @@
         && $destination ne 'guestpm2' )
     {   
         $extra = $mypost_extra;
-        foreach my $x ( 0 .. ( @icon_list - 1 )) {
-            $myic = 'ic' . $x;
+ 
+        foreach my $x ( 0 .. ( @iconlist - 1 )) {
+            $myic = qq~ic$x~;
+            if ($icon eq $iconlist[$x]) { $ic[$x] = ' selected="selected" '; }
             $extra =~ s/{yabb $myic}/$ic[$x]/sm;
         }
         
@@ -824,7 +826,7 @@
         $livemip = $display_txt{'511'};
         
         $livemsgimg =
-qq~<img src="$micon_bg{$icon}" name="liveicons" alt="" />~;
+qq~<img src="$micon_bg{$icon}" id="liveicons" alt="" />~;
         get_template('Post');
 
         $messageblock = $mypost_liveprev;
@@ -1495,8 +1497,8 @@
 
     CheckIcon();
     
-    foreach my $x ( 0 .. ( @icon_list - 1 ) ) {
-        if ( $icon eq $icon_list[$x] ) {
+    foreach my $x ( 0 .. ( @iconlist - 1 ) ) {
+        if ( $icon eq $iconlist[$x] ) {
             $ic[$x] = q~ selected="selected" ~;
         }
         else {$ic[$x] = q{};}