forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Mon Nov 20, 2017 12:03 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Disable variant...
PostPosted: Tue Apr 27, 2010 5:34 pm 
Offline

Joined: Wed Jul 29, 2009 10:22 am
Posts: 841
On my server I changed \locales\English\gamecreate.php (line 131):
Code:
      $Variant = libVariant::loadFromVariantName($variantName);
      if (!(isset($Variant->disabled))) {
         $checkboxes[] = '<input type="radio" '.($first?'checked="on" ':'').'name="newGame[variantID]" value="'.$variantID.'"> '.$Variant->link();
         $first=false;
      }

So I can now just set a public variable "disable" in the variant-config-file to disable new gamecreation.
Not elegant, but a quick solution.

Oliver


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group