From 01e84a0f263a4a8effbd3fe3689b355c5c62a340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E5=90=8D=E5=86=99=E6=89=8B?= Date: Thu, 2 Apr 2020 17:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A1=A5=E4=B8=81=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 97fdd4d..bced053 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@ wfLoadExtension('LatinizeUrl'); ``` 到LocalSettings.php +执行maintenance/update.php或者网页版更新器 +检查includes/MediaWiki.php里有没有 +```php +// Start LatinizeUrl 1.0.0 InitializeParseTitleHook Patch +// This code is added by LatinizeUrl, Donnot remove untill you uninstall LatinizeUrl. +Hooks::run( 'InitializeParseTitle', [ &$ret, $request ] ); +// End LatinizeUrl 1.0.0 InitializeParseTitleHook Patch +``` +如果没有的话,请将其手动加至 ```private function parseTitle()``` 的 ```return $ret;``` 之前 ## 配置 ### 使用PHP内置的解析器(较慢) @@ -32,7 +41,6 @@ $wgLatinizeUrlConfig['fallback'] = 'inner'; 另:虚拟主机可以使用异世界百科的开放api ``` https://static-www.isekai.cn:8082/api/toolkit/asciiurl/hanzi2pinyin -或 http://static-www.isekai.cn:8081/api/toolkit/asciiurl/hanzi2pinyin ``` 不保证稳定性,建议自建daemon \ No newline at end of file