Lines Matching refs:link

72             // FIXME this simply assumes that the link pointed to :$conf['start'], but it could also point to another page
94 * if the old link ended with a colon and the new one is a start page, adjust
117 * Uses a relative link only if the original was relative, too. This function is for
130 // first check if the old link still resolves
135 // Work around bug in DokuWiki 2020-07-29 where resolve_pageid doesn't append the start page to a link to
144 return $relold; // old link still resolves, keep as is
149 // check if the link was relative
183 // if the old link ended with a colon and the new one is a start page, adjust
210 // link is still valid as is
214 // only namespace changed, keep CamelCase in link
234 $link = preg_replace(array('/^\[\[/', '/\]\]$/u'), '', $match);
237 $link = explode('|', $link, 2);
238 if(!isset($link[1])) {
239 $link[1] = null;
240 } else if(preg_match('/^\{\{[^\}]+\}\}$/', $link[1])) {
242 $old_title = $link[1];
243 $link[1] = $this->rewrite_media($link[1]);
247 $match = substr_replace($match, $link[1], $oldpos, $oldlen);
249 $link[0] = trim($link[0]);
251 //decide which kind of link it is
253 if(preg_match('/^[a-zA-Z0-9\.]+>{1}.*$/u', $link[0])) {
256 } elseif(preg_match('/^\\\\\\\\[^\\\\]+?\\\\/u', $link[0])) {
259 } elseif(preg_match('#^([a-z0-9\-\.+]+?)://#i', $link[0])) {
260 // external link (accepts all protocols)
262 } elseif(preg_match('<' . PREG_PATTERN_VALID_EMAIL . '>', $link[0])) {
265 } elseif(preg_match('!^#.+!', $link[0])) {
266 // local hash link
269 $id = $link[0];
299 if($link[1] != null) {
300 $new_id .= '|' . $link[1];