cvs: docweb /templates/all/www userlist.tpl.php

[email protected] ("Nuno Lopes")
Newsgroups php.doc.web
Message-ID <cvsnlopess1123841975@cvsserver>
nlopess		Fri Aug 12 06:19:35 2005 EDT

  Modified files:              
    /docweb/templates/all/www	userlist.tpl.php 
  Log:
  show the countrie's name, not the abbreviation
  
http://cvs.php.net/diff.php/docweb/templates/all/www/userlist.tpl.php?r1=1.1&r2=1.2&ty=u
Index: docweb/templates/all/www/userlist.tpl.php
diff -u docweb/templates/all/www/userlist.tpl.php:1.1 docweb/templates/all/www/userlist.tpl.php:1.2
--- docweb/templates/all/www/userlist.tpl.php:1.1	Thu Aug 11 11:25:38 2005
+++ docweb/templates/all/www/userlist.tpl.php	Fri Aug 12 06:19:33 2005
@@ -1,5 +1,5 @@
 <?php
-global $data;
+global $data, $COUNTRIES;
 
 echo <<< HTML
 <table border="1">
@@ -13,7 +13,7 @@
 
 foreach ($data as $user) {
 
-    $user['country'] = empty($user['country']) ? '&nbsp;' : $user['country'];
+    $user['country'] = empty($user['country']) ? '&nbsp;' : $COUNTRIES[$user['country']];
 
     echo <<< HTML
  <tr>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.