From b698c2ab612c81f62c5e5dc0e48140b424110963 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Thu, 17 May 2007 17:44:06 +0000 Subject: [PATCH] Check if the files exist. Display tick if they do and cross if not. --- filter/tex/filterconfig.html | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/filter/tex/filterconfig.html b/filter/tex/filterconfig.html index ded48a5fb0..723b1c7e42 100644 --- a/filter/tex/filterconfig.html +++ b/filter/tex/filterconfig.html @@ -22,6 +22,19 @@ $txt->pathlatex = get_string( 'pathlatex','admin' ); $txt->pathdvips = get_string( 'pathdvips','admin' ); $txt->pathconvert = get_string( 'pathconvert','admin' ); + $txt->tick = '✔'; + $txt->cross = '✘'; + + // check file exists & display tick or cross + function texbinaryconfirm( $path ) { + global $txt; + if (is_file($path)) { + echo "$txt->tick"; + } + else { + echo "$txt->cross"; + } + } ?> @@ -46,16 +59,22 @@ + value="filter_tex_pathlatex); ?>" /> + filter_tex_pathlatex ); ?> + + value="filter_tex_pathdvips); ?>" /> + filter_tex_pathdvips ); ?> + + value="filter_tex_pathconvert); ?>" /> + filter_tex_pathconvert ); ?> +
pathlatex; ?>
pathdvips; ?>
pathconvert; ?>
-- 2.39.5