Ticket #1579: weather.patch

File weather.patch, 1.2 KB (added by otto at kolsi dot net, 15 years ago)
  • mythweb/themes/default/weather/weather.php

     
    3232            echo $site->host;
    3333    ?></p>
    3434    <p class="location"><?php
    35             echo "$site->acid: $site->city, $site->subdiv, $site->country";
     35            echo "$site->acid: $site->city"; if($site->subdiv != "") echo ", $site->subdiv"; echo ", $site->country";
    3636    ?></p>
    3737
    3838    <div class="current_conditions clearfix">
  • mythweb/themes/compact/weather/weather.php

     
    3232            echo $site->host;
    3333    ?></p>
    3434    <p class="location"><?php
    35             echo "$site->acid: $site->city, $site->subdiv, $site->country";
     35            echo "$site->acid: $site->city"; if($site->subdiv != "") echo ", $site->subdiv"; echo ", $site->country";
    3636    ?></p>
    3737
    3838    <div class="current_conditions clearfix">