I need an extra tab.

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

I need an extra tab.

Natasha Brown
Thanks,

I do not know php yet, but I have tryed it anyway, it gives me syntax mistake

                        wfRunHooks( 'SkinTemplateTabs', array( $this, &$content_actions ) );
                } else {    //THIS IS THE LINE,
                            //IT MIGHT BE BECAUSE OF THE BUG WHICH FOLLOWS
                        /* show special page tab */

                        $content_actions[$this->mTitle->getNamespaceKey()] = array(
                                'class' => 'selected',
                                'text' => wfMsg('nstab-special'),
                                'href' => $wgRequest->getRequestURL(), // @bug 2457, 2510  //!!!?
                        );

                        wfRunHooks( 'SkinTemplateBuildContentActionUrlsAfterSpecialPage', array(
&$this, &$content_actions ) );

I will be trying.
               


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

Re: I need an extra tab.

Jan Luca
Hi,

what is the error PHP gives you?

Best regards,
Jan

-----Urspr√ľngliche Nachricht-----
Von: [hidden email]
[mailto:[hidden email]] Im Auftrag von Natasha Brown
Gesendet: Montag, 9. August 2010 01:35
An: [hidden email]
Betreff: [Wikitech-l] I need an extra tab.

Thanks,

I do not know php yet, but I have tryed it anyway, it gives me syntax
mistake

                        wfRunHooks( 'SkinTemplateTabs', array( $this,
&$content_actions ) );
                } else {    //THIS IS THE LINE,
                            //IT MIGHT BE BECAUSE OF THE BUG WHICH FOLLOWS
                        /* show special page tab */

                        $content_actions[$this->mTitle->getNamespaceKey()] =
array(
                                'class' => 'selected',
                                'text' => wfMsg('nstab-special'),
                                'href' => $wgRequest->getRequestURL(), //
@bug 2457, 2510  //!!!?
                        );

                        wfRunHooks(
'SkinTemplateBuildContentActionUrlsAfterSpecialPage', array(
&$this, &$content_actions ) );

I will be trying.
               


_______________________________________________
Wikitech-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


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

Re: I need an extra tab.

Natasha Brown
It gave me

Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in
/home/wikitra2/public_html/w/includes/SkinTemplate.php on line 894

Then somehow I have managed to delete my LocalSetting.php and I have spend all
night restoring it: I might have learn a bit...

I wish someone Can help me! My site needs an extra tab.


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

Re: I need an extra tab.

Roan Kattouw-2
2010/8/9 Natasha Brown <[hidden email]>:
> It gave me
>
> Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in
> /home/wikitra2/public_html/w/includes/SkinTemplate.php on line 894
>
Sounds like you have a missing } somewhere (or one too many).

Roan Kattouw (Catrope)

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

Re: I need an extra tab.

Svip
In reply to this post by Natasha Brown
On 9 August 2010 13:35, Natasha Brown
<[hidden email]> wrote:

> It gave me
>
> Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in
> /home/wikitra2/public_html/w/includes/SkinTemplate.php on line 894
>
> Then somehow I have managed to delete my LocalSetting.php and I have spend all
> night restoring it: I might have learn a bit...
>
> I wish someone Can help me! My site needs an extra tab.

Can you pastebin that function?  http://paste.pocoo.org/

Regards,
le Svip

_______________________________________________
Wikitech-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l