Skip to content

Commit

Permalink
Add pre-1.18 variant support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Friesen committed Jan 27, 2011
1 parent 1c00288 commit 270a094
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Monaco.skin.php
Expand Up @@ -705,10 +705,9 @@ private function getArticleLinks($tpl) {
$val["text"] = $tabText;
}

// @todo Implement variants menu support for pre-1.18
if($key == 'report-problem') {
// Do nothing
} else if( strpos($key, 'nstab-') === 0 || in_array($key, $force_right) ) {
if ( strpos($key, 'varlang-') === 0 ) {
$links['variants'][$key] = $val;
} else if ( strpos($key, 'nstab-') === 0 || in_array($key, $force_right) ) {
$links['right'][$key] = $val;
} else {
$links['left'][$key] = $val;
Expand Down

0 comments on commit 270a094

Please sign in to comment.