X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites%22%2C%22%22%29.%20%22?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=c3a716f91d778484552cd094da7f245e43e57418;hb=023fec5d7b3a1a4b57d7bd3c555eeb06fd6bae22;hp=358b466f0310dc8d08f80d9f0283506676b1c532;hpb=9993aca8e4734c8639c09a6421f64fe5671d8421;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 358b466f03..c3a716f91d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -8618,6 +8618,9 @@ $wgUploadMaintenance = false; * 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). * + * @note To determine the default model for a new page's main slot, or any slot in general, + * use SlotRoleHandler::getDefaultModel() together with SlotRoleRegistry::getRoleHandler(). + * * @since 1.21 */ $wgNamespaceContentModels = [];