X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefines.php;h=ab02a8e7b78c5e0026b2172b9ce3d49c282e3252;hb=f8ab05a4819525c32e2b05ae92e23f2f56efcf81;hp=1c06ad0d780e6bd1eb21258d8af0e994d0c158c4;hpb=af4d3cd4a0864e33d3ba0791853742e2a487d16d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Defines.php b/includes/Defines.php index 1c06ad0d78..ab02a8e7b7 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -43,13 +43,12 @@ define( 'DBO_COMPRESS', 512 ); * Valid database indexes * Operation-based indexes */ -define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) +define( 'DB_REPLICA', -1 ); # Read from a replica (or only server) define( 'DB_MASTER', -2 ); # Write to master (or only server) /**@}*/ # Obsolete aliases -define( 'DB_READ', -1 ); -define( 'DB_WRITE', -2 ); +define( 'DB_SLAVE', -1 ); /**@{ * Virtual namespaces; don't appear in the page database @@ -170,6 +169,7 @@ define( 'RC_EDIT', 0 ); define( 'RC_NEW', 1 ); define( 'RC_LOG', 3 ); define( 'RC_EXTERNAL', 5 ); +define( 'RC_CATEGORIZE', 6 ); /**@}*/ /**@{ @@ -180,8 +180,9 @@ define( 'EDIT_UPDATE', 2 ); define( 'EDIT_MINOR', 4 ); define( 'EDIT_SUPPRESS_RC', 8 ); define( 'EDIT_FORCE_BOT', 16 ); -define( 'EDIT_DEFER_UPDATES', 32 ); +define( 'EDIT_DEFER_UPDATES', 32 ); // Unused since 1.27 define( 'EDIT_AUTOSUMMARY', 64 ); +define( 'EDIT_INTERNAL', 128 ); /**@}*/ /**@{ @@ -304,3 +305,9 @@ define( 'CONTENT_FORMAT_JSON', 'application/json' ); // for future use with the api, and for use by extensions define( 'CONTENT_FORMAT_XML', 'application/xml' ); /**@}*/ + +/**@{ + * Max string length for shell invocations; based on binfmts.h + */ +define( 'SHELL_MAX_ARG_STRLEN', '100000' ); +/**@}*/