Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -146,7 +146,9 @@ |
147 | 147 | $str .= sprintf( "Narayam.shortcut.key= '%s';\n", $wgNarayamConfig['shortcut_key'] ); |
148 | 148 | $str .= sprintf( "Narayam.checkbox.text= '%s ('+Narayam.shortcut.toString()+')';\n", wfMsgForContent( 'narayam-toggle-ime' ) /* $wgNarayamConfig['checkbox']['text'] */ ); |
149 | 149 | $title = Title::newFromText( wfMsgForContent( 'narayam-help-page' ) ); |
150 | | - $str .= sprintf( "Narayam.checkbox.href= '%s';\n", $title->getFullURL() ); |
| 150 | + if ( $title ) { |
| 151 | + $str .= sprintf( "Narayam.checkbox.href= '%s';\n", $title->getFullURL() ); |
| 152 | + } |
151 | 153 | $str .= sprintf( "Narayam.checkbox.tooltip= '%s';\n", wfMsgForContent( 'narayam-checkbox-tooltip' ) ); |
152 | 154 | // $str .= 'Narayam.default_state = ' . Narayam::boolToString($wgNarayamConfig['default_state']) . ";\n"; |
153 | 155 | $str .= "Narayam.schemes = [\n"; |