X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=74b2ea6b1ec84829bb54192ee2c0e5e1f20e976b;hb=8685e3adec3f405e7790bf24bc99199ec66b6294;hp=7237b536ea18eb8b4a6c2c324ebd3b1fba21ffd4;hpb=e1dd00327e5d169a0299f2502fa9215786903389;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7237b536ea..74b2ea6b1e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -559,6 +559,7 @@ function wfExpandUrl( $url, $defaultProto = PROTO_CURRENT ) { * * @todo Need to integrate this into wfExpandUrl (bug 32168) * + * @since 1.19 * @param $urlParts Array URL parts, as output from wfParseUrl * @return string URL assembled from its component parts */ @@ -2657,7 +2658,8 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) { if( !$ok ) { // PHP doesn't report the path in its warning message, so add our own to aid in diagnosis. - trigger_error( __FUNCTION__ . ": failed to mkdir \"$dir\" mode $mode", E_USER_WARNING ); + trigger_error( sprintf( "%s: failed to mkdir \"%s\" mode 0%o", __FUNCTION__, $dir, $mode ), + E_USER_WARNING ); } return $ok; } @@ -3920,6 +3922,16 @@ function wfGetParserCacheStorage() { return ObjectCache::getInstance( $wgParserCacheType ); } +/** + * Get the cache object used by the language converter + * + * @return BagOStuff + */ +function wfGetLangConverterCacheStorage() { + global $wgLanguageConverterCacheType; + return ObjectCache::getInstance( $wgLanguageConverterCacheType ); +} + /** * Call hook functions defined in $wgHooks *