Changeset 543137
- Timestamp:
- 05/11/2012 10:39:40 PM (14 years ago)
- File:
-
- 1 edited
-
dell-cloud-connect/trunk/connect.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dell-cloud-connect/trunk/connect.php
r543134 r543137 54 54 55 55 //Get option to see if it has already been installed 56 $clientId = get_option(' edu_connect_clientid', null);56 $clientId = get_option('dell_connect_clientid', null); 57 57 58 58 //Set global default option … … 67 67 $clientId = $settings->data->id; 68 68 } 69 update_option(' edu_connect_clientid', $clientId);69 update_option('dell_connect_clientid', $clientId); 70 70 update_option('edu_connect_showlink', true); 71 71 } 72 72 73 73 function dell_connect_uninstall() { 74 $clientId = get_option(' edu_connect_clientid', null);74 $clientId = get_option('dell_connect_clientid', null); 75 75 $settings = file_get_contents(DELL_CONNECT_SERVICE_URL . '/client/deactivate?clientid=' . $clientId); 76 76 $settings = json_decode($settings); … … 170 170 $count_items = $instance['count_items']; 171 171 $show_descriptions = $instance['show_descriptions']; 172 $clientId = get_option(' edu_connect_clientid', null);172 $clientId = get_option('dell_connect_clientid', null); 173 173 ?> 174 174 <?php echo $before_widget; ?> … … 183 183 <?php endif; ?> 184 184 _dec.push(['setBaseUrl', '<?php echo DELL_CONNECT_SERVICE_URL ?>']); 185 _dec.push(['setClientId', '<?php echo get_option(" edu_connect_clientid")?>']);185 _dec.push(['setClientId', '<?php echo get_option("dell_connect_clientid")?>']); 186 186 _dec.push(['setDivision', '<?php echo DELL_CONNECT_DIVISION ?>']); 187 187 _dec.push(['getFeed',<?php echo (int)$count_items; ?>,<?php echo (($show_descriptions)?'true':'false'); ?>]); … … 278 278 <?php endif; ?> 279 279 _dec.push(['setBaseUrl', '<?php echo DELL_CONNECT_SERVICE_URL ?>']); 280 _dec.push(['setClientId', '<?php echo get_option(" edu_connect_clientid")?>']);280 _dec.push(['setClientId', '<?php echo get_option("dell_connect_clientid")?>']); 281 281 _dec.push(['setDivision', '<?php echo DELL_CONNECT_DIVISION ?>']); 282 282 _dec.push(['getBlogList']);
Note: See TracChangeset
for help on using the changeset viewer.