updated method that checks for pdflatex
This commit is contained in:
parent
661ede6c8b
commit
f742b875a9
5
vendor/Sensei/Sensei/Doc/Renderer/Pdf.php
vendored
5
vendor/Sensei/Sensei/Doc/Renderer/Pdf.php
vendored
@ -50,8 +50,9 @@ class Sensei_Doc_Renderer_Pdf extends Sensei_Doc_Renderer
|
||||
|
||||
public function testRequirements()
|
||||
{
|
||||
exec($this->_options['pdflatex_path'] . ' --version', $output);
|
||||
if ( ! isset($output[0]) || substr($output[0], 0, 6) !== 'pdfTeX') {
|
||||
exec($this->_options['pdflatex_path'], $output);
|
||||
|
||||
if ( ! isset($output[0]) || ! preg_match('/^This is pdfTeXk/', $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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user