Lines Matching defs:link
159 $link = $instruction[1][0];
171 $full = $link;
181 // create the new link
182 $newlink = $this->changeLink($link, $full, $currentns);
184 // replace the link
185 if(($link != $newlink) && ($full != cleanID($newlink))) {
191 $newlink . // new link
192 substr($text, $pos + strlen($link)); // continue after old link
224 * Rewrite the given link according to the given settings
226 * @param string $link the current link as found in the page source
227 * @param string $full the full, resolved version of the above link
228 * @param string $currentNS the namespace of the page the link was found in
229 * @return string the corrected link
231 protected function changeLink($link, $full, $currentNS) {
237 if(!preg_match('/^'.$this->qchangefrom.'/ui', $full)) return $link;