http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72785

Revision: 72785
Author:   tparscal
Date:     2010-09-11 09:09:49 +0000 (Sat, 11 Sep 2010)

Log Message:
-----------
Fixed fatal error - now $user is being checked to be sucessfully built before 
it's used.

Modified Paths:
--------------
    trunk/phase3/includes/ResourceLoaderModule.php

Modified: trunk/phase3/includes/ResourceLoaderModule.php
===================================================================
--- trunk/phase3/includes/ResourceLoaderModule.php      2010-09-11 08:56:30 UTC 
(rev 72784)
+++ trunk/phase3/includes/ResourceLoaderModule.php      2010-09-11 09:09:49 UTC 
(rev 72785)
@@ -839,8 +839,7 @@
                if ( isset( $this->modifiedTime[$hash] ) ) {
                        return $this->modifiedTime[$hash];
                }
-               if ( $context->getUser() ) {
-                       $user = User::newFromName( $context->getUser() );
+               if ( $context->getUser() && $user = User::newFromName( 
$context->getUser() ) ) {
                        return $this->modifiedTime[$hash] = $user->getTouched();
                } else {
                        return 0;



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to