OSDN Git Service

BugTrack2/260: grobal $script => $script = get_script_uri()
authorhenoheno <henoheno>
Sun, 11 Nov 2007 12:14:09 +0000 (21:14 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 30 Nov 2014 11:09:53 +0000 (20:09 +0900)
plugin/edit.inc.php

index 555370e..a35df73 100644 (file)
@@ -82,7 +82,7 @@ function plugin_edit_inline()
 {
        static $usage = '&edit(pagename#anchor[[,noicon],nolabel])[{label}];';
 
-       global $script, $vars, $fixed_heading_anchor_edit;
+       global $vars, $fixed_heading_anchor_edit;
 
        if (PKWK_READONLY) return ''; // Show nothing 
 
@@ -152,6 +152,7 @@ function plugin_edit_inline()
        }
 
        // URL
+       $script = get_script_uri();
        if ($isfreeze) {
                $url   = $script . '?cmd=unfreeze&amp;page=' . rawurlencode($s_page);
        } else {