rotem(a)svn.wikimedia.org schreef:
> Revision: 28094
> Author: rotem
> Date: 2007-12-03 12:36:22 +0000 (Mon, 03 Dec 2007)
>
> Log Message:
> -----------
> Users without the delete permission but with the deletedhistory one should not be allowed to access the content of deleted revisions.
>
Why is that? Configurations in which one wants to prevent users from
deleting stuff but allow them to view deleted revs are not unthinkable.
That's why deletedhistory is a separate right, right?
Roan Kattouw (Catrope)
There's something about this code I don't understand:
$fixtags = array(
# french spaces, last one Guillemet-left
# only if there is something before the space
'/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1 \\2',
# french spaces, Guillemet-right
'/(\\302\\253) /' => '\\1 ',
);
If I'm not mistaken, the sequence \\302\\273 is actually referring to
a right guillemet (») and the second regular expression is referring
to the left guillemet («), just based on the behaviour.
But what encoding is that? What does the \\302 do? I grok regexes, but not php.
Also, what exactly is the (.) for? What situation is it trying to avoid?
Thanks,
Steve
On 12/1/07, werdna(a)svn.wikimedia.org <werdna(a)svn.wikimedia.org> wrote:
> Revision: 28007
> Author: werdna
> Date: 2007-12-01 09:08:43 +0000 (Sat, 01 Dec 2007)
>
> Log Message:
> -----------
> * (bug 11346) Prevent users who cannot edit a page from changing its restrictions.
This kind of hard-coded merging of restrictions makes me uneasy. What
if someone wants to have a protection level where no one at all can
edit the page, without explicitly unprotecting? Then no one could
ever unprotect it . . . In general, I like to see "edit" mean "edit",
not "edit and also unprotect, if you have the unprotect right". But
maybe that's just me.
A cleaner way to do this, if protection levels higher than sysop are
desired, is to explicitly have different levels of the 'protect'
permission. This is possibly most suitable for an extension.
I'm 'doing' disambiguation pages on the Dutch Wikipedia at the moment,
but I found that there are disambiguation pages that are shown as
linked when they are not. After some checking, I found that it is
caused by templates like the Dutch [[Sjabloon:Districtlink]]
{{#ifexist: {{{1}}} (district) | [[{{{1}}} (district)|{{{1}}}]] |
{{#ifexist: {{{1}}} | [[{{{1}}}]] | {{{1}}} }} }}
Apparently, when the template is put on the page, [[X (district)]]
does not exist, but [[X]] does exist. Later [[X]] is changed into a
disambiguation page and [[X (district)]] is created. However, the
links table is not updated in this case. Is there a way to force an
update of the links of a set of pages to be forced (or at least put in
the job queue)? In the past this could be done with a touch
(zero-edit) on the page, but that doesn't seem to work any more.
--
Andre Engels, andreengels(a)gmail.com
ICQ: 6260644 -- Skype: a_engels
Hi,
today we came over 10k HTTP requests per second (even with inter-squid
traffic eliminated). Especially thanks to Mark and Tim, who've been
improving our caching, as well as doing lots of other work, and
achieved incredible results (while I was slacking). Really, thanks!
Domas