X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FDjVuSupport.php;h=eede54e0f21b6630e635988e3f1a3aa4af82b4ac;hb=095c50ade11ccea3b0edc8956ad45dea46d4c18b;hp=4739be4e1a5f2d7a71507ae0738bb9e8db655b39;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/DjVuSupport.php b/tests/parser/DjVuSupport.php index 4739be4e1a..eede54e0f2 100644 --- a/tests/parser/DjVuSupport.php +++ b/tests/parser/DjVuSupport.php @@ -31,10 +31,10 @@ class DjVuSupport { public function __construct() { global $wgDjvuRenderer, $wgDjvuDump, $wgDjvuToXML, $wgFileExtensions, $wgDjvuTxt; - $wgDjvuRenderer = $wgDjvuRenderer ? $wgDjvuRenderer : '/usr/bin/ddjvu'; - $wgDjvuDump = $wgDjvuDump ? $wgDjvuDump : '/usr/bin/djvudump'; - $wgDjvuToXML = $wgDjvuToXML ? $wgDjvuToXML : '/usr/bin/djvutoxml'; - $wgDjvuTxt = $wgDjvuTxt ? $wgDjvuTxt : '/usr/bin/djvutxt'; + $wgDjvuRenderer = $wgDjvuRenderer ?: '/usr/bin/ddjvu'; + $wgDjvuDump = $wgDjvuDump ?: '/usr/bin/djvudump'; + $wgDjvuToXML = $wgDjvuToXML ?: '/usr/bin/djvutoxml'; + $wgDjvuTxt = $wgDjvuTxt ?: '/usr/bin/djvutxt'; if ( !in_array( 'djvu', $wgFileExtensions ) ) { $wgFileExtensions[] = 'djvu'; @@ -55,4 +55,3 @@ class DjVuSupport { && is_executable( $wgDjvuTxt ); } } -