cvs: php-master-web /fetch mirrors.php
| From: | Gabor Hojtsy | Date: | Sun, 22 Dec 2002 13:16:30 +0000 |
| Subject: | cvs: php-master-web /fetch mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14431@lists.php.net to get a copy of this message | ||
goba Sun Dec 22 08:16:30 2002 EDT
Modified files:
/php-master-web/fetch mirrors.php
Log:
We do not need the special zero element. And it also
caused problems with the new parameterized functions,
as 0 evaluates to false ;) There are only three places
in phpweb, where the $MIRRORS array is used, and none
of them depend on the existence of the element number
zero...
Index: php-master-web/fetch/mirrors.php
diff -u php-master-web/fetch/mirrors.php:1.14 php-master-web/fetch/mirrors.php:1.15
--- php-master-web/fetch/mirrors.php:1.14 Sat Dec 21 11:46:02 2002
+++ php-master-web/fetch/mirrors.php Sun Dec 22 08:16:30 2002
@@ -17,6 +17,7 @@
define('MIRROR_DOWNLOAD', 0);
define('MIRROR_STANDARD', 1);
define('MIRROR_SPECIAL', 2);
+define('MIRROR_VIRTUAL', 3);
// Mirror status constants
define('MIRROR_OK', 0);
@@ -95,7 +96,6 @@
"\"$row[providername]\",$row[has_stats],\"$row[providerurl]\"" .
",$row[mirrortype],$row[has_search],\"$row[lang]\",$status),\n";
}
- echo ' 0 => array("xx", "Unknown", FALSE, "/",
MIRROR_SPECIAL, FALSE, "en", MIRROR_DOESNOTWORK)', "\n";
echo ");\n";
echo "?>\n";
}