Manual:$wgDisabledActions/zh

From Linux Web Expert

Revision as of 01:44, 28 June 2023 by 36.225.118.194 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Access</translate>: $wgDisabledActions
一系列禁用的文章操作,例如查看,编辑,dublincore,删除等。
<translate> Introduced in version:</translate>1.4.1
<translate> Deprecated in version:</translate>1.18.0 (Gerrit change 157140; git #8779f4b5)
<translate> Removed in version:</translate>1.23.0 (Gerrit change 109891; git #e7b85e72)
<translate> Allowed values:</translate>(-{zh-hans:字符串数组; zh-hant:字串陣列;}-)
<translate> Default value:</translate>array()

细节

<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.22</tvar> is unsupported version</translate>">
<translate> ≤</translate> 1.22
MediaWiki版本:

一系列禁用的文章操作,例如查看,编辑,dublincore,删除等。 参见手册:index.php的参数

从1.18版开始不推荐使用,并在1.23版中删除。 只需设置$wgActions ['action'] = false;即可禁用操作。

将$wgDisabledActions转换为$wgActions的示例:

// 旧格式
$wgDisabledActions = array( 'raw', 'render', 'credits' );

// 新格式
$wgActions['raw'] = false;
$wgActions['render'] = false;
$wgActions['credits'] = false;