无法保护MediaWiki

时间:2015-08-28 16:49:23

标签: mediawiki mediawiki-extensions

我有一个MediaWiki网站。

在一个页面上,我有一个由EmailForm扩展名实现的表单。

页面必须受到保护才能运行。我还需要将此页面翻译成捷克语。

所以我安装了Language Extension Bundle,然后使用翻译扩展程序标记要翻译的页面。

我也翻译了这个页面。原始页面有效但捷克翻译页面不起作用,因为它没有受到保护。

我尝试保护/cs页面但收到此错误消息:

  

您无权更改此页面的保护级别,原因如下:

- This page cannot be updated manually. This page is a translation of the page [Green Card Request] and the translation can be updated using the translation tool.
- You cannot change the protection levels of this page because you do not have permission to edit it.

我是网站管理员。

目前我已经禁用了实现保护要求的代码,但这不是一个好的长期解决方案。

/*
if ( !($wgTitle->isProtected ('edit')) )
    return ( EMAILFORM_NAME . " is only active on protected pages." );
*/

0 个答案:

没有答案