Changeset 1504791
- Timestamp:
- 09/29/2016 01:17:11 AM (10 years ago)
- Location:
- haystack/trunk
- Files:
-
- 2 edited
-
Haystack_OptionsManager.php (modified) (1 diff)
-
Haystack_Plugin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
haystack/trunk/Haystack_OptionsManager.php
r1499944 r1504791 217 217 } 218 218 else { 219 $this->deleteOption('client_ link');219 $this->deleteOption('client_hash'); 220 220 $this->deleteOption('api_key'); 221 221 $this->deleteOption('haystack_first_index'); -
haystack/trunk/Haystack_Plugin.php
r1499944 r1504791 24 24 'title' => 'API key', 25 25 ), 26 'client_ link' => array(27 'title' => 'Client Link',26 'client_hash' => array( 27 'title' => 'Client Hash', 28 28 'hide' => true, 29 29 ), … … 150 150 151 151 //Data 152 $client_ url = $this->getOption('client_link');152 $client_hash = $this->getOption('client_hash'); 153 153 $trig = $this->getOption('trig'); 154 154 $quick_links = $this->get_quick_links(); … … 157 157 158 158 $data = array( 159 'client_ url' => $client_url,159 'client_hash' => $client_hash, 160 160 'analytics' => HAYSTACK_ANALYTICS, 161 161 'quick_links' => $quick_links_title.$quick_links, … … 377 377 378 378 if (isset($data->status) && $data->status == 'success') { 379 $this->updateOption('client_ link', $data->clientLink);379 $this->updateOption('client_hash', $data->siteHash); 380 380 return true; 381 381 } … … 389 389 $steps = array( 390 390 'key' => $this->getOption('api_key',false), 391 ' link' => $this->getOption('client_link', false),391 'hash' => $this->getOption('client_hash', false), 392 392 'index' => $this->getOption('haystack_first_index', false), 393 393 'types' => $this->getOption('post_types', false), 394 394 ); 395 395 396 if ($steps['key'] && $steps[' link']) {396 if ($steps['key'] && $steps['hash']) { 397 397 $i++; 398 398 if ($steps['index']) {
Note: See TracChangeset
for help on using the changeset viewer.