Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e6967af9
Commit
e6967af9
authored
Feb 10, 2015
by
webchick
Browse files
Issue
#2423953
by mpdonadio: Properly comment use of Url::fromUri('base:core/authorize.php')
parent
5259e3b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/system/system.module
View file @
e6967af9
...
...
@@ -420,8 +420,8 @@ function system_authorized_init($callback, $file, $arguments = array(), $page_ti
* @see system_authorized_init()
*/
function
system_authorized_get_url
(
array
$options
=
array
())
{
global
$base_url
;
//
Prefix with $base_url so url() treats it as an external link
.
// core/authorize.php is an unrouted URL, so using the base: scheme is
//
the correct usage for this case
.
$url
=
Url
::
fromUri
(
'base:core/authorize.php'
);
$url_options
=
$url
->
getOptions
();
$url
->
setOptions
(
$options
+
$url_options
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment