[Mediawiki-l] wgWhitelistReadis not working in hebrew ver.

Leon Kolchinsky lkolchin at univ.haifa.ac.il
Sun Jan 27 14:47:45 UTC 2008


> Hello,
> 
> 
> This is what I have in my LocalSettings.php (in order to enable only to
> registered users to edit and view my wiki) 1.11.1 ver. installed in Hebrew
> language.
> I also wanted that only admins could create user accounts:
> $wgGroupPermissions["*"]["edit"] = false;
> $wgGroupPermissions['*']['createaccount'] = false;
> $wgGroupPermissions['user']['createaccount'] = false;
> $wgGroupPermissions['sysop']['createaccount'] = true;
> $wgGroupPermissions['*']['read'] = false;
> $wgWhitelistRead = array ("Main Page", "Special:Userlogin",
> "Wikipedia:Help");
> $wgWhitelistRead = array(
>  # "Special":Userlogin (in Hebrew)
>    urldecode("%D7%9E%D7%99%D7%95%D7%97%D7%93:Userlogin"),
>   # "MainPage" in Hebrew
>    urldecode("%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99") ) ;
> 
> The problem is with the following snippet:
> $wgWhitelistRead = array(
>  # "Special":Userlogin (in Hebrew)
>    urldecode("%D7%9E%D7%99%D7%95%D7%97%D7%93:Userlogin"),
>   # "MainPage" in Hebrew
>    urldecode("%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99") ) ;
> 
> Not registered users can't see the "Main page" but they can see the login
> page.
> So as I see it, this code:
> urldecode("%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99")
> is not working :(
> 
> Could someone tell me why and how to resolve this problem, please?
> 
> 
> Best Regards,
> Leon

Any takers for this question please?


Leon




More information about the MediaWiki-l mailing list