Commit 619286b0 authored by mcdruid's avatar mcdruid
Browse files

Issue #2842762 by Liam Morland, cafuego, jenlampton, ZenDoodles: Call to...

Issue #2842762 by Liam Morland, cafuego, jenlampton, ZenDoodles: Call to undefined function drupal_get_path_alias() in url()
parent ee42dea5
......@@ -2329,6 +2329,7 @@ function url($path = NULL, array $options = array()) {
}
elseif (!empty($path) && !$options['alias']) {
$language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : '';
require_once DRUPAL_ROOT . '/' . variable_get('path_inc', 'includes/path.inc');
$alias = drupal_get_path_alias($original_path, $language);
if ($alias != $original_path) {
// Strip leading slashes from internal path aliases to prevent them
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment