OSDN Git Service

BugTrack/2260 Use get_script_uri() instead of $script
[pukiwiki/pukiwiki.git] / plugin / random.inc.php
index 899d12c..08cb6de 100644 (file)
@@ -1,9 +1,10 @@
 <?php
-/////////////////////////////////////////////////
-// PukiWiki - Yet another WikiWikiWeb clone.
-//
-// $Id: random.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
+// PukiWiki - Yet another WikiWikiWeb clone
+// random.inc.php
+// Copyright 2002-2017 PukiWiki Development Team
+// License: GPL v2 or (at your option) any later version
 //
+// Show random page plugin
 
 /*
  *プラグイン random
@@ -20,8 +21,9 @@
 
 function plugin_random_convert()
 {
-       global $script, $vars;
+       global $vars;
 
+       $script = $get_script_uri();
        $title = '[Random Link]'; // default
        if (func_num_args()) {
                $args  = func_get_args();
@@ -51,4 +53,3 @@ function plugin_random_action()
 
        return array('body'=>'','msg'=>'');
 }
-