Index: trunk/extensions/inputbox/inputbox.php |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | */ |
43 | 43 | function renderInputbox($input) |
44 | 44 | { |
| 45 | + global $wgTitle; |
45 | 46 | $inputbox=new Inputbox(); |
46 | 47 | getBoxOption($inputbox->type,$input,'type'); |
47 | 48 | getBoxOption($inputbox->width,$input,'width',true); |
— | — | @@ -54,6 +55,8 @@ |
55 | 56 | getBoxOption($inputbox->labeltext,$input,'labeltext'); |
56 | 57 | |
57 | 58 | $boxhtml=$inputbox->render(); |
| 59 | + # Maybe support other useful magic words here |
| 60 | + $boxhtml=str_replace("{{PAGENAME}}",$wgTitle->getText(),$boxhtml); |
58 | 61 | if($boxhtml) { |
59 | 62 | return $boxhtml; |
60 | 63 | } else { |