Lines Matching refs:rev

264  * @param string|int $rev empty or revision timestamp
269 function page_exists($id,$rev='',$clean=true, $date_at=false) { argument
270 if($rev !== '' && $date_at) {
272 $pagelog_rev = $pagelog->getLastRevisionAt($rev);
274 $rev = $pagelog_rev;
276 return file_exists(wikiFN($id,$rev,$clean));
292 function wikiFN($raw_id,$rev='',$clean=true){ argument
303 if (isset($cache[$id]) && isset($cache[$id][$rev])) {
304 return $cache[$id][$rev];
307 if(empty($rev)){
310 $fn = $conf['olddir'].'/'.utf8_encodeFN($id).'.'.$rev.'.txt';
325 $cache[$id][$rev] = $fn;
402 * @param string|int $rev empty string or revision timestamp
407 function mediaFN($id, $rev='', $clean=true){ argument
411 if(empty($rev)){
416 $fn = $conf['mediaolddir'].'/'.utf8_encodeFN($name .'.'.( (int) $rev ).'.'.$ext[0]);
508 * @param int|string $rev
511 function resolve_mediaid($ns,&$page,&$exists,$rev='',$date_at=false){ argument
513 if($rev !== '' && $date_at){
515 $medialog_rev = $medialog->getLastRevisionAt($rev);
517 $rev = $medialog_rev;
521 $file = mediaFN($page,$rev);
533 * @param string $rev
536 function resolve_pageid($ns,&$page,&$exists,$rev='',$date_at=false ){ argument
556 if($rev !== '' && $date_at) {
558 $pagelog_rev = $pagelog->getLastRevisionAt($rev);
560 $rev = $pagelog_rev;
562 $file = wikiFN($page,$rev);
567 if(page_exists($page.$conf['start'],$rev,true,$date_at)){
571 }elseif(page_exists($page.noNS(cleanID($page)),$rev,true,$date_at)){
575 }elseif(page_exists($page,$rev,true,$date_at)){
592 if(page_exists($try,$rev,true,$date_at)){