$scriptは、global変数とはせず、get_script_uriを呼んで相対uriを取得。。

*** make_link.php.org	Fri Apr 20 09:35:55 2007
--- make_link.php	Fri Apr 20 09:45:33 2007
***************
*** 706,713 ****
  // Make hyperlink for the page
  function make_pagelink($page, $alias = '', $anchor = '', $refer = '', $isautolink = FALSE)
  {
! 	global $script, $vars, $link_compact, $related, $_symbol_noexists;
  
  	$s_page = htmlspecialchars(strip_bracket($page));
  	$s_alias = ($alias == '') ? $s_page : $alias;
  
--- 706,714 ----
  // Make hyperlink for the page
  function make_pagelink($page, $alias = '', $anchor = '', $refer = '', $isautolink = FALSE)
  {
! 	global $vars, $link_compact, $related, $_symbol_noexists;
  
+ 	$script = get_script_uri('rel');
  	$s_page = htmlspecialchars(strip_bracket($page));
  	$s_alias = ($alias == '') ? $s_page : $alias;

  • 過去の遺物
    *** make_link.php.org	Sat Dec 10 07:57:30 2005
    --- make_link.php	Sat Mar 10 21:40:40 2007
    ***************
    *** 519,525 ****
      
      		$url = get_interwiki_url($name, $this->param);
      		$this->url = ($url === FALSE) ?
    ! 			$script . '?' . rawurlencode('[[' . $name . ':' . $this->param . ']]') :
      			htmlspecialchars($url);
      
      		return parent::setParam(
    --- 519,525 ----
      
      		$url = get_interwiki_url($name, $this->param);
      		$this->url = ($url === FALSE) ?
    ! 			'./?' . rawurlencode('[[' . $name . ':' . $this->param . ']]') :
      			htmlspecialchars($url);
      
      		return parent::setParam(
    ***************
    *** 735,748 ****
      			$al_left = $al_right = '';
      		}
      
    ! 		return $al_left . '<a ' . 'href="' . $script . '?' . $r_page . $anchor .
      			'"' . $title . '>' . $s_alias . '</a>' . $al_right;
      	} else {
      		// Dangling link
      		if (PKWK_READONLY) return $s_alias; // No dacorations
      
      		$retval = $s_alias . '<a href="' .
    ! 			$script . '?cmd=edit&amp;page=' . $r_page . $r_refer . '">' .
      			$_symbol_noexists . '</a>';
      
      		if ($link_compact) {
    --- 735,748 ----
      			$al_left = $al_right = '';
      		}
      
    ! 		return $al_left . '<a ' . 'href="' . './?' . $r_page . $anchor .
      			'"' . $title . '>' . $s_alias . '</a>' . $al_right;
      	} else {
      		// Dangling link
      		if (PKWK_READONLY) return $s_alias; // No dacorations
      
      		$retval = $s_alias . '<a href="' .
    ! 			'./?cmd=edit&amp;page=' . $r_page . $r_refer . '">' .
      			$_symbol_noexists . '</a>';
      
      		if ($link_compact) {
  • とりあえずこれはNGと言うことで、近いうちに修正します。 -- ぃぉぃぉ 2007-03-13 (火) 12:22:39

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2007-07-02 (月) 20:20:07
Site admin: PukiWiki Development Team

PukiWiki 1.5.2+ © 2001-2019 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u7. HTML convert time: 0.176 sec.

OSDN