dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Xml: Fix Xml::fieldset() when $content is not given"
[lhc/web/wiklou.git]
/
maintenance
/
mwdocgen.php
diff --git
a/maintenance/mwdocgen.php
b/maintenance/mwdocgen.php
index
dc2eccd
..
43041a4
100644
(file)
--- a/
maintenance/mwdocgen.php
+++ b/
maintenance/mwdocgen.php
@@
-72,7
+72,7
@@
class MWDocGen extends Maintenance {
}
protected function init() {
}
protected function init() {
- global $IP;
+ global $
wgPhpCli, $
IP;
$this->doxygen = $this->getOption( 'doxygen', 'doxygen' );
$this->mwVersion = $this->getOption( 'version', 'master' );
$this->doxygen = $this->getOption( 'doxygen', 'doxygen' );
$this->mwVersion = $this->getOption( 'version', 'master' );
@@
-86,7
+86,13
@@
class MWDocGen extends Maintenance {
$this->output = $this->getOption( 'output', "$IP/docs" );
$this->output = $this->getOption( 'output', "$IP/docs" );
- $this->inputFilter = wfShellWikiCmd( $IP . '/maintenance/mwdoc-filter.php' );
+ // Do not use wfShellWikiCmd, because mwdoc-filter.php is not
+ // a Maintenance script.
+ $this->inputFilter = wfEscapeShellArg( [
+ $wgPhpCli,
+ $IP . '/maintenance/mwdoc-filter.php'
+ ] );
+
$this->template = $IP . '/maintenance/Doxyfile';
$this->excludes = [
'vendor',
$this->template = $IP . '/maintenance/Doxyfile';
$this->excludes = [
'vendor',
@@
-99,7
+105,7
@@
class MWDocGen extends Maintenance {
$this->excludePatterns[] = 'extensions';
}
$this->excludePatterns[] = 'extensions';
}
- $this->doDot =
`which dot`
;
+ $this->doDot =
shell_exec( 'which dot' )
;
$this->doMan = $this->hasOption( 'generate-man' );
}
$this->doMan = $this->hasOption( 'generate-man' );
}