Lines Matching refs:more
595 * @param mixed $more string or array with additional parameters
601 function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false) argument
609 if (is_array($more)) {
611 $w = $more['w'] ?? null;
612 $h = $more['h'] ?? null;
614 $more['tok'] = media_get_token($id, $w, $h);
617 if (isset($more['cache']) && $more['cache'] == 'cache') unset($more['cache']);
618 if (empty($more['w'])) unset($more['w']);
619 if (empty($more['h'])) unset($more['h']);
620 if (isset($more['id']) && $direct) unset($more['id']);
621 if (isset($more['rev']) && !$more['rev']) unset($more['rev']);
622 $more = buildURLparams($more, $sep);
625 … if (preg_match_all('/\b(w|h)=(\d*)\b/', $more, $matches, PREG_SET_ORDER) || $isexternalimage) {
630 $more .= $more === '' ? '' : $sep;
631 $more .= 'tok=' . media_get_token($id, $resize['w'], $resize['h']);
633 $more = str_replace('cache=cache', '', $more); //skip default
634 $more = str_replace(',,', ',', $more);
635 $more = str_replace(',', $sep, $more);
647 $xlink .= '?' . $more;
670 if ($more) $xlink .= '?' . $more;
671 } elseif ($more) {
672 $xlink .= $script . '?' . $more;