Commit 2fd99918 authored by bgm's avatar bgm

Issue #886450 comment #7/#16: by edjay/hedac : fix crawler not working with...

Issue #886450 comment #7/#16: by edjay/hedac : fix crawler not working with path prefix language negociation
parent 3a34e8c1
......@@ -6222,7 +6222,7 @@ function boost_crawler_add_alias_to_table() {
$list = db_query_range("SELECT ua.dst, ua.language FROM {url_alias} AS ua LEFT JOIN {node} AS n ON n.nid = CAST(substring(ua.src, 6) AS UNSIGNED) WHERE (n.status = 1 OR n.status IS NULL) $extra", $loaded, $count);
$data = array();
while ($row = db_fetch_array($list)) {
if (empty($row['language']) || $language->language != $row['language']) {
if (empty($row['language']) || ($language->language != $row['language'] && empty($language->prefix))) {
$url = $base_url . '/' . $row['dst'];
}
else {
......
Markdown is supported
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