X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=09e13fe7fdb6550acf87bd20f883c2b5203ebd3b;hb=c0b50eb47d2f73cb47a8f1c2e09fb089f7319587;hp=69b632c10b4f9f3403856ce4edb4604d7c375a92;hpb=69e1d12fe7e2f15a8a6caa2dcb07ccee028d153a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 69b632c10b..09e13fe7fd 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -726,6 +726,16 @@ $wgMediaHandlers = array( 'image/x-djvu' => 'DjVuHandler', // compat ); +/** + * Plugins for page content model handling. + * Each entry in the array maps a model id to a class name + */ +$wgContentHandlers = array( + CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', // the usual case + CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', // dumb version, no syntax highlighting + CONTENT_MODEL_CSS => 'CssContentHandler', // dumb version, no syntax highlighting +); + /** * Resizing can be done using PHP's internal image libraries or using * ImageMagick or another third-party converter, e.g. GraphicMagick. @@ -6145,6 +6155,31 @@ $wgSeleniumConfigFile = null; $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only $wgDBtestpassword = ''; +/** + * Associative array mapping namespace IDs to the name of the content model pages in that namespace should have by + * default (use the CONTENT_MODEL_XXX constants). If no special content type is defined for a given namespace, + * pages in that namespace will use the CONTENT_MODEL_WIKITEXT (except for the special case of JS and CS pages). + */ +$wgNamespaceContentModels = array(); + +/** + * How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText(): + * + * * 'ignore': return null + * * 'fail': throw an MWException + * * 'serializeContent': serializeContent to default format + */ +$wgContentHandlerTextFallback = 'ignore'; + +/** + * Compatibility switch for running ContentHandler code withoput a schema update. + * Set to false to disable use of the database fields introduced by the ContentHandler facility. + * + * @deprecated this is only here to allow code deployment without a database schema update on large sites. + * get rid of it in the next version. + */ +$wgContentHandlerUseDB = true; + /** * Whether the user must enter their password to change their e-mail address */