Skip to content

Commit

Permalink
Fixed issue unable to set global googleanalyticsapikey and googletran…
Browse files Browse the repository at this point in the history
…slateapikey
  • Loading branch information
TMSWhite committed Mar 13, 2012
1 parent 98bde57 commit 965f2bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/globalsettings.php
Expand Up @@ -153,6 +153,7 @@ private function _saveSettings()
setGlobalSetting('sess_expiration', $iSessionExpirationTime);
setGlobalSetting('ipInfoDbAPIKey', $_POST['ipInfoDbAPIKey']);
setGlobalSetting('googleMapsAPIKey', $_POST['googleMapsAPIKey']);
setGlobalSetting('googleanalyticsapikey',$_POST['googleanalyticsapikey']);
setGlobalSetting('googletranslateapikey',$_POST['googletranslateapikey']);
setGlobalSetting('force_ssl', $_POST['force_ssl']);
setGlobalSetting('surveyPreview_require_Auth', $_POST['surveyPreview_require_Auth']);
Expand Down
4 changes: 4 additions & 0 deletions application/views/admin/globalSettings_view.php
Expand Up @@ -186,6 +186,10 @@
<input type='text' size='35' id='ipInfoDbAPIKey' name='ipInfoDbAPIKey' value="<?php echo htmlspecialchars(getGlobalSetting('ipInfoDbAPIKey')); ?>" /></li>
<li><label for='googleMapsAPIKey'><?php $clang->eT("Google Maps API key:"); ?></label>
<input type='text' size='35' id='googleMapsAPIKey' name='googleMapsAPIKey' value="<?php echo htmlspecialchars(getGlobalSetting('googleMapsAPIKey')); ?>" /></li>
<li><label for='googleanalyticsapikey'><?php $clang->eT("Google Analytics API key:"); ?></label>
<input type='text' size='35' id='googleanalyticsapikey' name='googleanalyticsapikey' value="<?php echo htmlspecialchars(getGlobalSetting('googleanalyticsapikey')); ?>" /></li>
<li><label for='googletranslateapikey'><?php $clang->eT("Google Translate API key:"); ?></label>
<input type='text' size='35' id='googletranslateapikey' name='googletranslateapikey' value="<?php echo htmlspecialchars(getGlobalSetting('googletranslateapikey')); ?>" /></li>
</ul></div>


Expand Down

0 comments on commit 965f2bb

Please sign in to comment.