[dev] Patch for Metar Block
    Rick Emery 
    rick at emery.homelinux.net
       
    Mon Feb 16 05:14:30 PST 2004
    
    
  
The attached patch fixes "Call to undefined function: trtoupper()" errors on
the portal page.
Thanks,
Rick
--
Rick Emery
"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci
-------------- next part --------------
Index: metar.php
===================================================================
RCS file: /repository/horde/lib/Block/metar.php,v
retrieving revision 1.13
diff -u -r1.13 metar.php
--- metar.php	14 Feb 2004 19:58:44 -0000	1.13
+++ metar.php	16 Feb 2004 13:09:45 -0000
@@ -280,19 +280,19 @@
                     break;
 
                 case '6hmaxtemp':
-                    $remarks .= '<br />' . _("Max temp last 6 hours: ") . round($value) . '°' . trtoupper($units['temp']);
+                    $remarks .= '<br />' . _("Max temp last 6 hours: ") . round($value) . '°' . strtoupper($units['temp']);
                     break;
 
                 case '6hmintemp':
-                    $remarks .= '<br />' . _("Min temp last 6 hours: ") . round($value) . '°' . trtoupper($units['temp']);
+                    $remarks .= '<br />' . _("Min temp last 6 hours: ") . round($value) . '°' . strtoupper($units['temp']);
                     break;
 
                 case '24hmaxtemp':
-                    $remarks .= '<br />' . _("Max temp last 24 hours: ") . round($value) . '°' . trtoupper($units['temp']);
+                    $remarks .= '<br />' . _("Max temp last 24 hours: ") . round($value) . '°' . strtoupper($units['temp']);
                     break;
 
                 case '24hmintemp':
-                    $remarks .= '<br />' . _("Min temp last 24 hours: ") . round($value) . '°' . trtoupper($units['temp']);
+                    $remarks .= '<br />' . _("Min temp last 24 hours: ") . round($value) . '°' . strtoupper($units['temp']);
                     break;
 
                 case 'sensors':
    
    
More information about the dev
mailing list