Index: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -269,7 +269,7 @@ |
270 | 270 | // Collect referenced files |
271 | 271 | $this->localFileRefs = array_unique( $this->localFileRefs ); |
272 | 272 | // If the list has been modified since last time we cached it, update the cache |
273 | | - if ( $this->localFileRefs !== $this->getFileDependencies( $context->getSkin() ) ) { |
| 273 | + if ( $this->localFileRefs !== $this->getFileDependencies( $context->getSkin() ) && !wfReadOnly() ) { |
274 | 274 | $dbw = wfGetDB( DB_MASTER ); |
275 | 275 | $dbw->replace( 'module_deps', |
276 | 276 | array( array( 'md_module', 'md_skin' ) ), array( |