1 ############################################################
3 # <p>źÉÕ¤·¤¿²èÁü¥Õ¥¡¥¤¥ë¤òɽ¼¨¤·¤Þ¤¹¡£</p>
5 # {{ref_image ¥Õ¥¡¥¤¥ë̾}}
7 # <p>Ê̤Υڡ¼¥¸¤ËźÉÕ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£</p>
9 # {{ref_image ¥Õ¥¡¥¤¥ë̾,¥Ú¡¼¥¸Ì¾}}
12 ############################################################
13 package plugin::attach::RefImage;
15 #===========================================================
17 #===========================================================
21 return bless $self,$class;
24 #===========================================================
26 #===========================================================
34 return &Util::paragraph_error("¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£","WIKI");
37 $page = $wiki->get_CGI()->param("page");
39 unless($wiki->can_show($page)){
40 return &Util::paragraph_error("¥Ú¡¼¥¸¤Î»²¾È¸¢¸Â¤¬¤¢¤ê¤Þ¤»¤ó¡£","WIKI");
43 my $filename = $wiki->config('attach_dir')."/".&Util::url_encode($page).".".&Util::url_encode($file);
45 return &Util::paragraph_error("¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£","WIKI");
48 $wiki->get_current_parser()->l_image($page,$file);