com web/master: Change the 'more info' text based upon the given flag.: manage/mirrors.php

From: Date: Wed, 10 Oct 2012 16:37:18 +0000
Subject: com web/master: Change the 'more info' text based upon the given flag.: manage/mirrors.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-14823@lists.php.net to get a copy of this message
Commit: 9ac013582572b10e6685206b66a56d7ee50408c6 Author: Daniel P. Brown <danbrown@php.net> Wed, 10 Oct 2012 12:37:18 -0400 Parents: cac87199585e1659a6900ba42f346725ada988f0 Branches: master Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=9ac013582572b10e6685206b66a56d7ee50408c6 Log: Change the 'more info' text based upon the given flag. Changed paths: M manage/mirrors.php Diff: diff --git a/manage/mirrors.php b/manage/mirrors.php index 26e49eb..6922c23 100644 --- a/manage/mirrors.php +++ b/manage/mirrors.php @@ -561,7 +561,13 @@ function page_mirror_list($moreinfo = false) if(empty($stats['disabled'])) $stats['disabled'] = 0; $stats['ok'] = $stats['mirrors'] - $stats['autodisabled'] - $stats['disabled']; - $moreinfo_flag = empty($moreinfo) ? 1 : 0; + if (empty($moreinfo)) { + $moreinfo_flag = 1; + $moreinfo_text = 'See more info'; + } else { + $moreinfo_flag = 0; + $moreinfo_text = 'See less info'; + } $has_sqlite_counts = ''; foreach ($stats['sqlite_counts'] as $stype => $scount) { @@ -624,7 +630,7 @@ echo <<<EOS </table> <h1>Resources</h1> - <a href="/manage/mirrors.php?mi={$moreinfo_flag}">See more info</a><br /> + <a href="/manage/mirrors.php?mi={$moreinfo_flag}">{$moreinfo_text}</a><br /> <a href="http://php.net/mirroring.php" target="_blank">Guidelines</a><br /> <a href="mailto:mirrors@php.net">Mailing list</a><br /> <a href="http://www.iana.org/domains/root/db/" target="_blank">Country TLDs</a>

« previous php.webmaster (#14823) next »