wgWhitelistReadis not working in hebrew ver.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wgWhitelistReadis not working in hebrew ver.

Leon Kolchinsky
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


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: wgWhitelistReadis not working in hebrew ver.

Leon Kolchinsky
> 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


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: wgWhitelistReadis not working in hebrew ver.

Brion Vibber-3
In reply to this post by Leon Kolchinsky
Leon Kolchinsky wrote:
> 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?

I believe you need to use spaces, not underscores, in this var.

-- brion

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l