https://bugzilla.wikimedia.org/show_bug.cgi?id=21325

           Summary: If login required to read, IE7 throws JS error when not
                    logged in
           Product: MediaWiki
           Version: 1.15.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: Normal
         Component: User interface
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: c...@web-factory.de


If $wgGroupPermissions['*']['read'] is set to 'false', then the call to
/wiki/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=myskin outputs not
a javascript file, nor nothing, but the quite normal HTML page with the message
about not being logged in. IE7 says this is not valid JS, and it does have a
point there. This problem probably also exists for IE6 and IE8.

On my local installation, since we have a project-specific default skin, I
patched it like so:

if($this->data['loggedin'       ] == '') {
 $this->data['jsvarurl'  ] = '';
}

But a better solution would be setting jsvarurl to nothing if the user must log
in to read before this point, or just outputting nothing for action=raw.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to