mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-19 02:50:44 +00:00
More wfMkdirParents() __METHOD__ additions
This commit is contained in:
parent
db20e016f9
commit
16b234384a
|
@ -53,7 +53,7 @@ class MathRenderer {
|
||||||
if( $wgMathCheckFiles ) {
|
if( $wgMathCheckFiles ) {
|
||||||
# Ensure that the temp and output directories are available before continuing...
|
# Ensure that the temp and output directories are available before continuing...
|
||||||
if( !file_exists( $wgTmpDirectory ) ) {
|
if( !file_exists( $wgTmpDirectory ) ) {
|
||||||
if( !wfMkdirParents( $wgTmpDirectory ) ) {
|
if( !wfMkdirParents( $wgTmpDirectory, null, __METHOD__ ) ) {
|
||||||
return $this->_error( 'math_bad_tmpdir' );
|
return $this->_error( 'math_bad_tmpdir' );
|
||||||
}
|
}
|
||||||
} elseif( !is_dir( $wgTmpDirectory ) || !is_writable( $wgTmpDirectory ) ) {
|
} elseif( !is_dir( $wgTmpDirectory ) || !is_writable( $wgTmpDirectory ) ) {
|
||||||
|
@ -160,7 +160,7 @@ class MathRenderer {
|
||||||
$hashpath = $this->_getHashPath();
|
$hashpath = $this->_getHashPath();
|
||||||
if( !file_exists( $hashpath ) ) {
|
if( !file_exists( $hashpath ) ) {
|
||||||
wfSuppressWarnings();
|
wfSuppressWarnings();
|
||||||
$ret = wfMkdirParents( $hashpath, 0755 );
|
$ret = wfMkdirParents( $hashpath, 0755, __METHOD__ );
|
||||||
wfRestoreWarnings();
|
wfRestoreWarnings();
|
||||||
if( !$ret ) {
|
if( !$ret ) {
|
||||||
return $this->_error( 'math_bad_output' );
|
return $this->_error( 'math_bad_output' );
|
||||||
|
@ -262,7 +262,7 @@ class MathRenderer {
|
||||||
|
|
||||||
if( !file_exists( $hashpath ) ) {
|
if( !file_exists( $hashpath ) ) {
|
||||||
wfSuppressWarnings();
|
wfSuppressWarnings();
|
||||||
$ret = wfMkdirParents( $hashpath, 0755 );
|
$ret = wfMkdirParents( $hashpath, 0755, __METHOD__ );
|
||||||
wfRestoreWarnings();
|
wfRestoreWarnings();
|
||||||
if( !$ret ) {
|
if( !$ret ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue