Skip to content

Commit

Permalink
reduce weight on admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dbroadfoot committed Apr 15, 2015
1 parent 8d8c62e commit 175e55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operators/sitelinkoperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function modify(&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$
$out = '';
$topDepth = 0;
foreach ($namedParameters['UseMatch'] as $UseMatch) {
if (strpos($UseMatch['siteaccess'], 'admin') !== false) $UseMatch['depth'] = $UseMatch['depth'] - 0.5;
if ($UseMatch['depth'] >= $topDepth) {
$topDepth = $UseMatch['depth'];
$out = $UseMatch['siteaccess'];
Expand Down

0 comments on commit 175e55d

Please sign in to comment.