1
0
mirror of synced 2025-01-17 22:11:41 +03:00

fixed the method that checks for pdflatex

This commit is contained in:
jepso 2007-09-01 15:56:54 +00:00
parent 224d3fb062
commit 96f97c2426

View File

@ -52,7 +52,7 @@ class Sensei_Doc_Renderer_Pdf extends Sensei_Doc_Renderer
{
exec($this->_options['pdflatex_path'], $output);
if ( ! isset($output[0]) || ! preg_match('/^This is pdfTeXk/', $output[0])) {
if ( ! isset($output[0]) || ! preg_match('/^This is pdfe?TeXk?/', $output[0])) {
$message = 'pdfLaTeX does not seem to be installed, or pdflatex_path'
. ' option does not point to pdfLaTeX executable.';
throw new Sensei_Doc_Renderer_Exception($message);