Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

946
 
1434
 
1434
 
language.php
_> 11 <?php
  22 /*
<> 3 -  $Id: language.php 946 2006-08-31 13:53:35Z hpdl $
   3+  $Id: language.php 1434 2007-03-08 19:15:38Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
3939                                                               'text_direction' => $Qlanguages->value('text_direction'),
  4040                                                               'currencies_id' => $Qlanguages->valueInt('currencies_id'),
  4141                                                               'numeric_separator_decimal' => $Qlanguages->value('numeric_separator_decimal'),
<> 42 -                                                              'numeric_separator_thousands' => $Qlanguages->value('numeric_separator_thousands'),
  43 -                                                              'image' => 'icon.gif');
   42+                                                              'numeric_separator_thousands' => $Qlanguages->value('numeric_separator_thousands'));
4443       }
  4544 
  4645       $Qlanguages->freeResult();
     
 !
219218       return $this->_languages[$this->_code]['text_direction'];
  220219     }
  221220 
<> 222 -    function getImage() {
  223 -      return $this->_languages[$this->_code]['image'];
  224 -    }
  225 -
226221     function getCurrencyID() {
  227222       return $this->_languages[$this->_code]['currencies_id'];
  228223     }
     
 !
234229     function getNumericThousandsSeparator() {
  235230       return $this->_languages[$this->_code]['numeric_separator_thousands'];
  236231     }
<>  232+
   233+    function showImage($code = null, $width = '16', $height = '10', $parameters = null) {
   234+      if ( empty($code) ) {
   235+        $code = $this->_code;
   236+      }
   237+
   238+      $image_code = strtolower(substr($code, 3));
   239+
   240+      if ( !is_numeric($width) ) {
   241+        $width = 16;
   242+      }
   243+
   244+      if ( !is_numeric($height) ) {
   245+        $height = 10;
   246+      }
   247+
   248+      return osc_image('images/worldflags/' . $image_code . '.png', $this->_languages[$code]['name'], $width, $height, $parameters);
   249+    }
<_ 237250   }
  238251 ?>