Skip to content

为MediaWiki添加百度统计代码

创建文件夹

mkdir -p /mediawiki/extensions/baidu

vi /mediawiki/extensions/baidu/extension.json

vi /mediawiki/extensions/baidu/baidu.php

具体代码:baidu

在/mediawiki/LocalSettings.php中加载扩展:

wfLoadExtension( ‘baidu’ );

Post a Comment

Your email is never published nor shared.