Commit 96f97c24 authored by jepso's avatar jepso

fixed the method that checks for pdflatex

parent 224d3fb0
...@@ -52,7 +52,7 @@ class Sensei_Doc_Renderer_Pdf extends Sensei_Doc_Renderer ...@@ -52,7 +52,7 @@ class Sensei_Doc_Renderer_Pdf extends Sensei_Doc_Renderer
{ {
exec($this->_options['pdflatex_path'], $output); 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' $message = 'pdfLaTeX does not seem to be installed, or pdflatex_path'
. ' option does not point to pdfLaTeX executable.'; . ' option does not point to pdfLaTeX executable.';
throw new Sensei_Doc_Renderer_Exception($message); throw new Sensei_Doc_Renderer_Exception($message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment