增加补丁的提示

master
落雨楓 5 years ago
parent 0ae8428650
commit 01e84a0f26

@ -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
Loading…
Cancel
Save