Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -150,9 +150,15 @@ |
151 | 151 | $str .= sprintf( "Narayam.shortcut.key= '%s';\n", $wgNarayamConfig['shortcut_key'] ); |
152 | 152 | $str .= sprintf( "Narayam.checkbox.text= '%s ('+Narayam.shortcut.toString()+')';\n", wfMsgForContent( 'narayam-toggle-ime' ) /* $wgNarayamConfig['checkbox']['text'] */ ); |
153 | 153 | $title = Title::newFromText( wfMsgForContent( 'narayam-help-page' ) ); |
| 154 | + |
| 155 | + $target = ''; |
| 156 | + |
154 | 157 | if ( $title ) { |
155 | | - $str .= sprintf( "Narayam.checkbox.href= '%s';\n", $title->getFullURL() ); |
| 158 | + $target = $title->getFullURL(); |
156 | 159 | } |
| 160 | + |
| 161 | + $str .= sprintf( "Narayam.checkbox.href= '%s';\n", $target ); |
| 162 | + |
157 | 163 | $str .= sprintf( "Narayam.checkbox.tooltip= '%s';\n", wfMsgForContent( 'narayam-checkbox-tooltip' ) ); |
158 | 164 | // $str .= 'Narayam.default_state = ' . Narayam::boolToString($wgNarayamConfig['default_state']) . ";\n"; |
159 | 165 | $str .= "Narayam.schemes = [\n"; |