/**
  * @param SS_HTTPRequest $request
  */
 public static function UpdateContinentBasedOnURL(SS_HTTPRequest $request)
 {
     if ($strURL = $request->getURL(false)) {
         $arrParts = explode('/', $strURL);
         foreach (ContinentalContent::GetContinents() as $strContinent => $strCode) {
             if ($strCode === $arrParts[0]) {
                 ContinentalContent::ForceUpdateContinent($strCode);
             }
         }
     }
 }
 /**
  * @param $base
  * @param $action
  */
 public function updateRelativeLink(&$base, &$action)
 {
     if (Config::inst()->get('ContinentalContent', 'custom_urls') == 'Y') {
         if ($strContinent = ContinentalContent::CurrentContinent()) {
             $bAddContinent = $strContinent != 100;
             if ($bAddContinent && strpos($base, $strContinent) === false) {
                 $base = Controller::join_links($strContinent, $base);
             }
         }
     }
 }