X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPathRouter.php;h=4d7bd38149df42c97ed27af6747693b83e031bb8;hb=04cea76cbbd1c66ddfa2a674cf383ffb497234ae;hp=2882e6632e83f46616a3e173db4b5da4263ef781;hpb=933a00217017bf56eb5de3e5d42e1611389f1f54;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PathRouter.php b/includes/PathRouter.php index 2882e6632e..4d7bd38149 100644 --- a/includes/PathRouter.php +++ b/includes/PathRouter.php @@ -401,4 +401,22 @@ class PathRouter { return $value; } + + /** + * @internal For use by Title and WebRequest only. + * @param array $actionPaths + * @param string $articlePath + * @return string[]|false + */ + public static function getActionPaths( array $actionPaths, $articlePath ) { + if ( !$actionPaths ) { + return false; + } + // Processing of urls for this feature requires that 'view' is set. + // By default, set it to the pretty article path. + if ( !isset( $actionPaths['view'] ) ) { + $actionPaths['view'] = $articlePath; + } + return $actionPaths; + } }