changeset 703:242cb053fbb2

Add array/list of preview types and descriptions for them.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Nov 2014 21:14:57 +0200
parents c527b42a7857
children de13b834249f
files msite.inc.php
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/msite.inc.php	Mon Nov 10 21:14:38 2014 +0200
+++ b/msite.inc.php	Mon Nov 10 21:14:57 2014 +0200
@@ -48,6 +48,13 @@
 define("EPREV_IMAGE", 1);           // Preview is image (PNG, JPEG)
 define("EPREV_AUDIO", 2);           // Preview is audio (Vorbis, MP3)
 
+$previewTypeList = array(
+  EPREV_NONE         => "No previews",
+  EPREV_IMAGE        => "Image file",
+  EPREV_AUDIO        => "Audio file",
+);
+
+
 //
 // Entry flags (bitfield)
 //