* Add exception hooks to output pretty messages
[lhc/web/wiklou.git] / includes / Defines.php
index 3148c76..69096be 100644 (file)
@@ -195,19 +195,6 @@ define( 'EDIT_DEFER_UPDATES', 32 );
 define( 'EDIT_AUTOSUMMARY', 64 );
 /**#@-*/
 
-/**#@+
- * Article::doRollback() return values
- */
-define('ROLLBACK_SUCCES', 0);
-define('ROLLBACK_PERM', 1); // Permission denied
-define('ROLLBACK_BLOCKED', 2); // User has been blocked
-define('ROLLBACK_READONLY', 3); // Wiki is in read-only mode
-define('ROLLBACK_BADTOKEN', 4);  // Invalid token specified
-define('ROLLBACK_BADARTICLE', 5); // $article is not a valid Article
-define('ROLLBACK_ALREADYROLLED', 6); // Someone else already rolled this back. $info['usertext'] and $info['comment'] will be set
-define('ROLLBACK_ONLYAUTHOR', 7); // User is the only author of the page
-define('ROLLBACK_EDITFAILED', 8); // Article::doEdit() failed. This is a very weird error
-
 /** 
  * Flags for Database::makeList() 
  * These are also available as Database class constants
@@ -273,6 +260,25 @@ define( 'UTF8_FFFF', "\xef\xbf\xbf" /*codepointToUtf8( 0xffff )*/ );
 define( 'UTF8_HEAD', false );
 define( 'UTF8_TAIL', true );
 
+# Hook support constants
+define( 'MW_SUPPORTS_EDITFILTERMERGED', 1 );
+
+# Allowed values for Parser::$mOutputType
+# Parameter to Parser::startExternalParse().
+define( 'OT_HTML', 1 );
+define( 'OT_WIKI', 2 );
+define( 'OT_MSG' , 3 );
+define( 'OT_PREPROCESS', 4 );
 
+# Flags for Parser::setFunctionHook
+define( 'SFH_NO_HASH', 1 );
+define( 'SFH_OBJECT_ARGS', 2 );
 
+# Flags for Parser::replaceLinkHolders
+define( 'RLH_FOR_UPDATE', 1 );
 
+# Autopromote conditions (must be here and not in Autopromote.php, so that
+# they're loaded for DefaultSettings.php before AutoLoader.php)
+define( 'APCOND_EDITCOUNT', 1 );
+define( 'APCOND_AGE', 2 );
+define( 'APCOND_EMAILCONFIRMED', 3 );