Lines Matching defs:rev
1007 * @param string|int $rev revision timestamp or empty string
1009 function media_tab_view($image, $ns, $auth = null, $rev = '')
1015 $meta = new JpegMeta(mediaFN($image, $rev));
1016 media_preview($image, $auth, $rev, $meta);
1017 media_preview_buttons($image, $auth, $rev);
1018 media_details($image, $auth, $rev, $meta);
1077 * @param int|string $rev revision timestamp or empty string
1082 function media_preview($image, $auth, $rev = '', $meta = false)
1085 $size = media_image_preview_size($image, $rev, $meta);
1092 if ($rev) {
1093 $more['rev'] = $rev;
1118 * @param int|string $rev revision timestamp, or empty string
1120 function media_preview_buttons($image, $auth, $rev = '')
1126 if ($auth >= AUTH_DELETE && !$rev && file_exists(mediaFN($image))) {
1141 if ($auth >= $auth_ow && !$rev) {
1155 if ($auth >= AUTH_UPLOAD && $rev && $conf['mediarevisions'] && file_exists(mediaFN($image, $rev))) {
1163 $form->setHiddenField('rev', $rev);
1179 * @param int|string $rev
1184 function media_image_preview_size($image, $rev, $meta = false, $size = 500)
1188 || !file_exists($filename = mediaFN($image, $rev))
1260 * @param string|int $rev revision timestamp, or empty string
1263 function media_details($image, $auth, $rev = '', $meta = false)
1267 if (!$meta) $meta = new JpegMeta(mediaFN($image, $rev));
1364 * @param int $rev revision timestamp or empty string
1370 function media_restore($image, $rev, $auth)
1376 if (!$rev || !file_exists(mediaFN($image, $rev))) return false;
1379 mediaFN($image, $rev),