Ticket #874: apps_readable_variables.diff

File apps_readable_variables.diff, 1.4 KB (added by Nicolas, 15 years ago)

Changes two local variable names to actually say what they are for. (the _f suffix stands for "formatted")

  • html/user/

    old new  
    6868        }
    6969        foreach($avs as $av) {
    7070            if ($av->deprecated) continue;
    71             $y = pretty_time_str($av->create_time);
     71            $create_time_f = pretty_time_str($av->create_time);
    7272            if ($xml) {
    7373                echo "    <version>\n";
    7474                echo "        <platform_short>$platform->name</platform_short>\n";
     
    7777                if (!empty($av->plan_class)) {
    7878                    echo "        <plan_class>$av->plan_class</plan_class>\n";
    7979                }
    80                 echo "        <date>$y</date>\n";
     80                echo "        <date>$create_time_f</date>\n";
    8181                echo "        <date_unix>$av->create_time</date_unix>\n";
    8282                echo "    </version>\n";
    8383            } else {
    84                 $x = sprintf("%0.2f", $av->version_num/100);
     84                $version_num_f = sprintf("%0.2f", $av->version_num/100);
    8585                echo "<tr>
    8686                    <td>$platform->user_friendly_name</td>
    87                     <td>$x</td>";
     87                    <td>$version_num_f</td>";
    8888                if ($using_plan_class) {
    8989                    echo "<td>$av->plan_class</td>";
    9090                }
    91                 echo "<td>$y</td>";
     91                echo "<td>$create_time_f</td>";
    9292                echo "</tr>";
    9393            }
    9494        }