[TEP-COMMIT] [CVS admin] Some minor updates

anonymous-OfajU3CKLf1/[email protected] 10 Apr 2004 15:13:24 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in admin/admin on MAIN

categories.php +1 -2 1.147 -> 1.148

includes/functions/general.php +6 -4 1.160 -> 1.161

+7 -6

2 modified files

Some minor updates

----------

admin /admin

categories.php 1.147 -> 1.148

diff -u -r1.147 -r1.148
--- categories.php 2004/02/14 19:29:44 1.147
+++ categories.php 2004/04/10 15:13:22 1.148
@@ -310,8 +310,7 @@

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $categories_id . '&pID=' . $products_id));
break;
case 'new_product_preview':

- if (!isset($HTTP_GET_VARS['read'])) {
-

+ if (!isset($HTTP_GET_VARS['read'])) {

// copy image only if modified
$products_image = new upload('products_image');
$products_image->set_destination(DIR_FS_CATALOG_IMAGES);

----------

admin /admin /includes /functions

general.php 1.160 -> 1.161

diff -u -r1.160 -r1.161
--- general.php 2003/07/12 08:32:47 1.160
+++ general.php 2004/04/10 15:13:23 1.161
@@ -431,7 +431,7 @@

$state_prov_values = tep_db_fetch_array($state_prov_query);
$state_prov_code = $state_prov_values['zone_code'];
}

-

+

return $state_prov_code;
}

@@ -945,9 +945,11 @@

} else {
$cached_file = $cache_blocks[$i]['file'];
$languages = tep_get_languages();

- for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
- $cached_file = ereg_replace('-language', '-' . $languages[$i]['directory'], $cached_file);
- @unlink(DIR_FS_CACHE . $cached_file);

+ for ($j=0, $k=sizeof($languages); $j<$k; $j++) {
+ $cached_file_unlink = ereg_replace('-language', '-' . $languages[$j]['directory'], $cached_file);
+ if (file_exists(DIR_FS_CACHE . $cached_file_unlink)) {
+ @unlink(DIR_FS_CACHE . $cached_file_unlink);
+ }

}
}
break;

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