Manual:$wgActions

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgActions and the translation is 36% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎العربية • ‎中文 • ‎日本語
Acceso: $wgActions
Array of allowed values for the "action" parameter for normal pages.
Introducido en la versión:1.18.0 (r86041)
Eliminado en la versión:aún se usa
Valores permitidos:(array mapping strings to boolean or string)
Valor predeterminado:véase abajo
Otros configuración: Alfabéticamente | Por Función

Detalles

Array of allowed values for the "action" parameter for normal pages.

La sintaxis es:

  • 'foo' => 'ClassName' - Load the specified class which subclasses Action
  • 'foo' => true - Load the class FooAction which subclasses Action
  • 'foo' => false - The action is disabled; show an error message

Valor predeterminado

Versión de MediaWiki: 1.19
$wgActions = array(
	'credits' => true,
	'delete' => true,
	'edit' => true,
	'history' => true,
	'info' => true,
	'markpatrolled' => true,
	'protect' => true,
	'purge' => true,
	'raw' => true,
	'render' => true,
	'revert' => true,
	'revisiondelete' => true,
	'rollback' => true,
	'submit' => true,
	'unprotect' => true,
	'unwatch' => true,
	'view' => true,
	'watch' => true,
);
Versión de MediaWiki: 1.18
$wgActions = array(
	'credits' => true,
	'deletetrackback' => true,
	'info' => true,
	'markpatrolled' => true,
	'purge' => true,
	'revert' => true,
	'revisiondelete' => true,
	'rollback' => true,
	'unwatch' => true,
	'watch' => true,
);

Disable an action

To disable an action just add the following e.g. for the "raw" action to your "LocalSettings.php" file:

$wgActions['raw'] = false;
Unsetting core actions will probably cause things to complain loudly.