Changeset 2314 for trunk/vendor/Sensei

Show
Ignore:
Timestamp:
09/01/07 01:28:28 (17 months ago)
Author:
jepso
Message:

updated method that checks for pdflatex

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/vendor/Sensei/Sensei/Doc/Renderer/Pdf.php

    r2308 r2314  
    5151    public function testRequirements() 
    5252    { 
    53         exec($this->_options['pdflatex_path'] . ' --version', $output); 
    54         if ( ! isset($output[0]) || substr($output[0], 0, 6) !== 'pdfTeX') { 
     53        exec($this->_options['pdflatex_path'], $output); 
     54         
     55        if ( ! isset($output[0]) || ! preg_match('/^This is pdfTeXk/', $output[0])) { 
    5556            $message = 'pdfLaTeX does not seem to be installed, or pdflatex_path' 
    5657                     . ' option does not point to pdfLaTeX executable.';