Index: trunk/phase3/skins/Vector.php |
— | — | @@ -82,10 +82,12 @@ |
83 | 83 | |
84 | 84 | if ( $wgVectorUseIconWatch ) { |
85 | 85 | $mode = $this->skin->mTitle->userIsWatching() ? 'unwatch' : 'watch'; |
86 | | - $nav['views'][$mode] = $nav['actions'][$mode]; |
87 | | - $nav['views'][$mode]['class'] = rtrim('icon ' . $nav['views'][$mode]['class'], ' '); |
88 | | - $nav['views'][$mode]['primary'] = true; |
89 | | - unset($nav['actions'][$mode]); |
| 86 | + if ( isset($nav['actions'][$mode]) ) { |
| 87 | + $nav['views'][$mode] = $nav['actions'][$mode]; |
| 88 | + $nav['views'][$mode]['class'] = rtrim('icon ' . $nav['views'][$mode]['class'], ' '); |
| 89 | + $nav['views'][$mode]['primary'] = true; |
| 90 | + unset($nav['actions'][$mode]); |
| 91 | + } |
90 | 92 | } |
91 | 93 | |
92 | 94 | foreach ( $nav as $section => $links ) { |