/** * Used by Recentchangeslinked */ function rcDayLimitLinks($days, $limit, $page = 'Recentchanges', $more = '', $doall = false, $minorLink = '', $botLink = '', $liuLink = '', $patrLink = '', $myselfLink = '') { if ($more != '') { $more .= '&'; } $cl = rcCountLink(50, $days, $page, $more) . ' | ' . rcCountLink(100, $days, $page, $more) . ' | ' . rcCountLink(250, $days, $page, $more) . ' | ' . rcCountLink(500, $days, $page, $more) . ($doall ? ' | ' . rcCountLink(0, $days, $page, $more) : ''); $dl = rcDaysLink($limit, 1, $page, $more) . ' | ' . rcDaysLink($limit, 3, $page, $more) . ' | ' . rcDaysLink($limit, 7, $page, $more) . ' | ' . rcDaysLink($limit, 14, $page, $more) . ' | ' . rcDaysLink($limit, 30, $page, $more) . ($doall ? ' | ' . rcDaysLink($limit, 0, $page, $more) : ''); $linkParts = array('minorLink' => 'minor', 'botLink' => 'bots', 'liuLink' => 'liu', 'patrLink' => 'patr', 'myselfLink' => 'mine'); foreach ($linkParts as $linkVar => $linkMsg) { if (${$linkVar} != '') { $links[] = wfMsgHtml('rcshowhide' . $linkMsg, ${$linkVar}); } } $shm = implode(' | ', $links); $note = wfMsg('rclinks', $cl, $dl, $shm); return $note; }
/** * Used by Recentchangeslinked */ function rcDayLimitLinks($days, $limit, $page = 'Recentchanges', $more = '', $doall = false, $minorLink = '', $botLink = '', $liuLink = '', $patrLink = '') { if ($more != '') { $more .= '&'; } $cl = rcCountLink(50, $days, $page, $more) . ' | ' . rcCountLink(100, $days, $page, $more) . ' | ' . rcCountLink(250, $days, $page, $more) . ' | ' . rcCountLink(500, $days, $page, $more) . ($doall ? ' | ' . rcCountLink(0, $days, $page, $more) : ''); $dl = rcDaysLink($limit, 1, $page, $more) . ' | ' . rcDaysLink($limit, 3, $page, $more) . ' | ' . rcDaysLink($limit, 7, $page, $more) . ' | ' . rcDaysLink($limit, 14, $page, $more) . ' | ' . rcDaysLink($limit, 30, $page, $more) . ($doall ? ' | ' . rcDaysLink($limit, 0, $page, $more) : ''); $shm = wfMsg('showhideminor', $minorLink, $botLink, $liuLink, $patrLink); $note = wfMsg('rclinks', $cl, $dl, $shm); return $note; }