X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=ba72d76540606c80fc4b323e53819ed2288c0de2;hb=bc4a096805e87a11cb12ef0211f92313fff4d688;hp=e447983b0c6235a2dea50deee327df23295eff6c;hpb=887f4eff8200b93e8fed602f955cf036de067f95;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index e447983b0c..ba72d76540 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -27,10 +27,12 @@ if( !defined( 'MEDIAWIKI' ) ) { } # Create a site configuration object. Not used for much in a default install -if ( !defined( 'MW_COMPILED' ) ) { - require_once( "$IP/includes/SiteConfiguration.php" ); +if ( !defined( 'MW_PHP4' ) ) { + if ( !defined( 'MW_COMPILED' ) ) { + require_once( "$IP/includes/SiteConfiguration.php" ); + } + $wgConf = new SiteConfiguration; } -$wgConf = new SiteConfiguration; /** @endcond */ /** MediaWiki version number */ @@ -5021,38 +5023,6 @@ $wgMaxRedirectLinksRetrieved = 500; /** @} */ # end special pages } -/*************************************************************************//** - * @name Actions - * @{ - */ - -/** - * Array of allowed values for the title=foo&action= parameter. Syntax is: - * '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 - * Unsetting core actions will probably cause things to complain loudly. - */ -$wgActions = array( - 'credits' => true, - 'delete' => true, - 'unwatch' => true, - 'watch' => true, -); - -/** - * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc. - * @deprecated since 1.18; just set $wgActions['action'] = false instead - */ -$wgDisabledActions = array(); - -/** - * Allow the "info" action, very inefficient at the moment - */ -$wgAllowPageInfo = false; - -/** @} */ # end actions } - /*************************************************************************//** * @name Robot (search engine crawler) policy * See also $wgNoFollowLinks. @@ -5318,9 +5288,17 @@ $wgUpdateRowsPerQuery = 100; * @{ */ +/** Allow the "info" action, very inefficient at the moment */ +$wgAllowPageInfo = false; + /** Name of the external diff engine to use */ $wgExternalDiffEngine = false; +/** + * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc. + */ +$wgDisabledActions = array(); + /** * Disable redirects to special pages and interwiki redirects, which use a 302 * and have no "redirected from" link. Note this is only for articles with #Redirect