OSDN Git Service

Please use abstruct method $vars instead of $get or $post
authorhenoheno <henoheno>
Wed, 4 Aug 2004 13:43:23 +0000 (22:43 +0900)
committerhenoheno <henoheno>
Wed, 4 Aug 2004 13:43:23 +0000 (22:43 +0900)
plugin/read.inc.php

index e00cc24..a77471f 100644 (file)
@@ -2,14 +2,13 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: read.inc.php,v 1.6 2004/08/04 13:35:40 henoheno Exp $
+// $Id: read.inc.php,v 1.7 2004/08/04 13:43:23 henoheno Exp $
 //
 // ¥Ú¡¼¥¸¤Îɽ¼¨¤ÈInterWikiName¤Î²ò¼á
 
 function plugin_read_action()
 {
-       global $get, $post, $vars;
-       global $_title_invalidwn, $_msg_invalidiwn;
+       global $vars, $_title_invalidwn, $_msg_invalidiwn;
 
        $page = isset($vars['page']) ? $vars['page'] : '';
 
@@ -23,7 +22,7 @@ function plugin_read_action()
                return do_plugin_action('interwiki'); // InterWikiName¤ò½èÍý
 
        } else if (is_pagename($page)) {
-               $get['cmd'] = $post['cmd'] = $vars['cmd'] = 'edit';
+               $vars['cmd'] = 'edit';
                return do_plugin_action('edit'); // Â¸ºß¤·¤Ê¤¤¤Î¤Ç¡¢ÊÔ½¸¥Õ¥©¡¼¥à¤òɽ¼¨
 
        } else {