Minahito
minah****@users*****
2005年 8月 25日 (木) 12:16:06 JST
Index: xoops2jp/html/class/pagenav.php diff -u xoops2jp/html/class/pagenav.php:1.4 xoops2jp/html/class/pagenav.php:1.4.2.1 --- xoops2jp/html/class/pagenav.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/pagenav.php Thu Aug 25 12:16:06 2005 @@ -1,5 +1,5 @@ <?php -// $Id: pagenav.php,v 1.4 2005/08/03 12:39:11 onokazu Exp $ +// $Id: pagenav.php,v 1.4.2.1 2005/08/25 03:16:06 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -66,7 +66,7 @@ if ( $extra_arg != '' && ( substr($extra_arg, -5) != '&' || substr($extra_arg, -1) != '&' ) ) { $extra_arg .= '&'; } - $this->url = $_SERVER['PHP_SELF'].'?'.$extra_arg.trim($start_name).'='; + $this->url = xoops_getenv('PHP_SELF').'?'.$extra_arg.trim($start_name).'='; } /** @@ -125,7 +125,7 @@ $total_pages = ceil($this->total / $this->perpage); $ret = ''; if ( $total_pages > 1 ) { - $ret = '<form name="pagenavform" action="'.$_SERVER['PHP_SELF'].'">'; + $ret = '<form name="pagenavform" action="'.xoops_getenv('PHP_SELF').'">'; $ret .= '<select name="pagenavselect" onchange="location=this.options[this.options.selectedIndex].value;">'; $counter = 1; $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage));