Index: trunk/phase3/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -262,7 +262,7 @@ |
263 | 263 | // Collect referenced files |
264 | 264 | $this->localFileRefs = array_unique( $this->localFileRefs ); |
265 | 265 | // If the list has been modified since last time we cached it, update the cache |
266 | | - if ( $this->localFileRefs !== $this->getFileDependencies( $context->getSkin() ) ) { |
| 266 | + if ( $this->localFileRefs !== $this->getFileDependencies( $context->getSkin() ) && !wfReadOnly() ) { |
267 | 267 | $dbw = wfGetDB( DB_MASTER ); |
268 | 268 | $dbw->replace( 'module_deps', |
269 | 269 | array( array( 'md_module', 'md_skin' ) ), array( |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -268,7 +268,7 @@ |
269 | 269 | if ( User::isIP( $rootUser ) ) { |
270 | 270 | $this->mRelevantUser = User::newFromName( $rootUser, false ); |
271 | 271 | } else { |
272 | | - $user = User::newFromName( $rootUser ); |
| 272 | + $user = User::newFromName( $rootUser, false ); |
273 | 273 | if ( $user->isLoggedIn() ) { |
274 | 274 | $this->mRelevantUser = $user; |
275 | 275 | } |