Lines Matching refs:old
42 * @param array $page_moves Moves that shall be considered in the form [[$old,$new],...] ($old can be $original)
43 * @param array $media_moves Moves of media files that shall be considered in the form $old => $new
57 * Go through the list of moves and find the new value for the given old ID
59 * @param string $old the old, full qualified ID
64 public function resolveMoves($old, $type) {
69 $old = resolve_id($this->origNS, $old, false);
75 if(substr($old, -1) === ':' || $old === '') $old .= $conf['start'];
82 $old = cleanID($old);
85 if($move[0] == $old) {
86 $old = $move[1];
90 return $old; // this is now new
94 * if the old link ended with a colon and the new one is a start page, adjust
96 * @param $relold string the old, possibly relative ID
120 * @param string $relold the old, possibly relative ID
130 // first check if the old link still resolves
132 $old = $relold;
134 resolve_pageid($this->ns, $old, $exists);
137 if ($old === '') {
138 $old = $conf['start'];
141 resolve_mediaid($this->ns, $old, $exists);
143 if($old == $new) {
144 return $relold; // old link still resolves, keep as is
183 // if the old link ended with a colon and the new one is a start page, adjust