Re: RecentChanges plugin

Reini Urban <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Marc-Etienne Vargenau schrieb:
> Hello,
> 
> I am trying to improve the user interface of the RecentChanges plugin.
> 
> I have some questions, sorry if they are trivial.
> 
> 1) What is the meaning of the "||=" syntax?
> In MyRecentedits, you have "show_minor=1 show_deleted||=1"
> Why not write "show_minor=1 show_deleted=1" ?

||= is a weaker assignment than =, "define if not defined."

You can override ||= values in the url, but you cannot override = 
assignments via url assignments.

> 2) In all pages, you have "daylist=1,3,7,30,90,0"
> except in FullRecentChanges where you have "daylist=1,3,7,30,90,-1"
> Why?

Don't know. Both are the same.

         elseif ($days < 1)
             $label = "..."; //alldays
         else
             $label = sprintf(_("%s days"), abs($days));

So -1 displays "..." for alldays, but takes days=0 as argument.
But days=0 also displays "..." now.

BTW: With 0 days the day filter is ignored. All changes are listed.

-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://helsinki.at/  http://spacemovie.mur.at/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.