[TEP-COMMIT] [CVS catalog] call $_SERVER['PHP_SELF'] instead
anonymous-OfajU3CKLf1/[email protected] 13 Apr 2004 07:57:52 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/functions on MAIN
general.php +4 -2 1.236 -> 1.237
call $_SERVER['PHP_SELF'] instead
----------
catalog /catalog /includes /functions
general.php 1.236 -> 1.237
diff -u -r1.236 -r1.237
--- general.php 2004/02/16 07:23:43 1.236
+++ general.php 2004/04/13 07:57:50 1.237
@@ -803,13 +803,15 @@
////
// Return table heading with sorting capabilities
function tep_create_sort_heading($sortby, $colnum, $heading) {
- global $PHP_SELF;
+ if (PHP_VERSION < 4.1) {
+ global $_SERVER;
+ }
$sort_prefix = '';
$sort_suffix = '';
if ($sortby) {
- $sort_prefix = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . tep_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">' ;
+ $sort_prefix = '<a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . tep_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">' ;
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';
}
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