[TEP-COMMIT] [CVS catalog] Hide language and currency boxes if only 1 language or currency is available
anonymous-OfajU3CKLf1/[email protected] 3 Apr 2004 10:11:59 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/boxes on MAIN
currencies.php +1 -1 1.18 -> 1.19
languages.php +10 -5 1.15 -> 1.16
+11 -6
2 modified files
Hide language and currency boxes if only 1 language or currency is available
----------
catalog /catalog /includes /boxes
currencies.php 1.18 -> 1.19
diff -u -r1.18 -r1.19
--- currencies.php 2003/12/18 23:52:14 1.18
+++ currencies.php 2004/04/03 10:11:58 1.19
@@ -10,7 +10,7 @@
Released under the GNU General Public License
*/
- if (isset($osC_Currencies) && is_object($osC_Currencies)) {
+ if (isset($osC_Currencies) && is_object($osC_Currencies) && sizeof($osC_Currencies->currencies) > 1) {
?>
<!-- currencies //-->
<tr>
----------
catalog /catalog /includes /boxes
languages.php 1.15 -> 1.16
diff -u -r1.15 -r1.16
--- languages.php 2003/06/09 22:10:48 1.15
+++ languages.php 2004/04/03 10:11:58 1.16
@@ -9,6 +9,13 @@
Released under the GNU General Public License
*/
+
+ if (!isset($lng) || (isset($lng) && !is_object($lng))) {
+ include(DIR_WS_CLASSES . 'language.php');
+ $lng = new language;
+ }
+
+ if (sizeof($lng->catalog_languages) > 1){
?>
<!-- languages //-->
<tr>
@@ -19,11 +26,6 @@
new infoBoxHeading($info_box_contents, false, false);
- if (!isset($lng) || (isset($lng) && !is_object($lng))) {
- include(DIR_WS_CLASSES . 'language.php');
- $lng = new language;
- }
-
$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
@@ -39,3 +41,6 @@
</td>
</tr>
<!-- languages_eof //-->
+<?php
+ }
+?>
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click