Right
I have been trying to change the mainpage which seemed to be a lot of effort as I didn't want redirects and I didn't want it to be called mainpage. I changed where the logo would redirect to and that worked fine, but when I was trying to change the link in the sidebar it kept sending me to 'INVALID-TITLE'. Literally anything other than what I wanted to put in there would work, but the page I needed to go to just sent me to 'INVALID-TITLE'
Anyway I've messed it up and now this piece of code which I had to change where the logo directs to now breaks it entirely when I remove it again
/* Change the main page url used in things like the logo to a url of another page on the wiki */ $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; function lfChangeMainPageURL( $sk, &$tpl ) { $tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('Text')->getLocalURL(); // Point the main page url to a wiki page's url return true; }
so I would like to reset all my mainpages and sidebar links to the defaults if that is possible or do I need to reinstall?