Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-10 Thread jidanni
> "DF" == Daniel Friesen writes: DF> obviously $links needs a &. This should have never worked in the DF> first place without that. How do you expect to modify the links when DF> you're dealing with a copy? I don't know but it indeed did until about a month ago. That's what's in my backups.

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-10 Thread Daniel Friesen
On Wed, 10 Oct 2012 02:57:40 -0700, wrote: It turns out the ($sktemplate,$links) which worked a month ago, now needs to be (&$sktemplate,&$links)! You shouldn't need the & on $sktemplate. But obviously $links needs a &. This should have never worked in the first place without that. How do y

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-10 Thread jidanni
It turns out the ($sktemplate,$links) which worked a month ago, now needs to be (&$sktemplate,&$links)! ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-10 Thread jidanni
I don't want to change link colors. I want to remove links. This used to work up until a month ago. Please tell me what I need to do to make it work again. Please. function JidanniLessUselessNavigation($sktemplate,$links){ foreach($links['namespaces'] as $ns=>&$value){ if($value['context']

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-02 Thread Daniel Friesen
On Mon, 01 Oct 2012 23:10:11 -0700, wrote: I would be happy to use CSS, just tell me how to rewrite the final function of $wgNamespaceProtection[NS_CATEGORY]=$wgNamespaceProtection[NS_CATEGORY_TALK]=array('editinterface'); function JidanniBlueLinkCategoryPages($linker,$target,&$text,&$custom

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-01 Thread jidanni
I would be happy to use CSS, just tell me how to rewrite the final function of $wgNamespaceProtection[NS_CATEGORY]=$wgNamespaceProtection[NS_CATEGORY_TALK]=array('editinterface'); function JidanniBlueLinkCategoryPages($linker,$target,&$text,&$customAttribs,&$query,&$options){ switch($target->ge

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-01 Thread bawolff
On Mon, Oct 1, 2012 at 2:59 PM, Antoine Musso wrote: > Le 01/10/12 16:50, Daniel Friesen a écrit : >> Wait, all you've been doing this tim is removing redlinks... why don't >> you just use css for that? > > That will not work on text browsers which is what Jidanni uses. > > -- > Antoine "hashar" M

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-01 Thread Antoine Musso
Le 01/10/12 16:50, Daniel Friesen a écrit : > Wait, all you've been doing this tim is removing redlinks... why don't > you just use css for that? That will not work on text browsers which is what Jidanni uses. -- Antoine "hashar" Musso ___ Wikitech-l

Re: [Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-01 Thread Daniel Friesen
On Mon, 01 Oct 2012 04:39:59 -0700, wrote: Something changed this month in git making this not work anymore, function JidanniLessRedNavigation($sktemplate,$links){ foreach($links['namespaces'] as $ns=>&$value){ if($value['context']=='talk' && $value['class']=='new' && !$sktemplate->get

[Wikitech-l] my $wgHooks['SkinTemplateNavigation'] broke again

2012-10-01 Thread jidanni
Something changed this month in git making this not work anymore, function JidanniLessRedNavigation($sktemplate,$links){ foreach($links['namespaces'] as $ns=>&$value){ if($value['context']=='talk' && $value['class']=='new' && !$sktemplate->getTitle()->quickUserCan('createtalk')){ unse