Lines Matching refs:more
593 * @param mixed $more string or array with additional parameters
599 function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false) argument
607 if (is_array($more)) {
609 $w = $more['w'] ?? null;
610 $h = $more['h'] ?? null;
612 $more['tok'] = media_get_token($id, $w, $h);
615 if (isset($more['cache']) && $more['cache'] == 'cache') unset($more['cache']);
616 if (empty($more['w'])) unset($more['w']);
617 if (empty($more['h'])) unset($more['h']);
618 if (isset($more['id']) && $direct) unset($more['id']);
619 if (isset($more['rev']) && !$more['rev']) unset($more['rev']);
620 $more = buildURLparams($more, $sep);
623 … if (preg_match_all('/\b(w|h)=(\d*)\b/', $more, $matches, PREG_SET_ORDER) || $isexternalimage) {
628 $more .= $more === '' ? '' : $sep;
629 $more .= 'tok=' . media_get_token($id, $resize['w'], $resize['h']);
631 $more = str_replace('cache=cache', '', $more); //skip default
632 $more = str_replace(',,', ',', $more);
633 $more = str_replace(',', $sep, $more);
645 $xlink .= '?' . $more;
668 if ($more) $xlink .= '?' . $more;
669 } elseif ($more) {
670 $xlink .= $script . '?' . $more;