Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -113,7 +113,8 @@ |
114 | 114 | list( $major, $minor ) = $wgConf->siteFromDB( $dbname ); |
115 | 115 | if( $wgConf->get( 'wgReadOnly', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) ) ) |
116 | 116 | return true; |
117 | | - if( $wgConf->get( 'wgReadOnlyFile', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) ) ) |
| 117 | + $readOnlyFile = $wgConf->get( 'wgReadOnlyFile', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) ); |
| 118 | + if( $readOnlyFile && file_exists( $readOnlyFile ) ) |
118 | 119 | return true; |
119 | 120 | return false; |
120 | 121 | } |