Plugin Directory

Changeset 1504791


Ignore:
Timestamp:
09/29/2016 01:17:11 AM (10 years ago)
Author:
haystacksearch
Message:

Update the settings to use siteHash instead of clientURL, the JS will take care of the rest.

Location:
haystack/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • haystack/trunk/Haystack_OptionsManager.php

    r1499944 r1504791  
    217217                }
    218218                else {
    219                     $this->deleteOption('client_link');
     219                    $this->deleteOption('client_hash');
    220220                    $this->deleteOption('api_key');
    221221                    $this->deleteOption('haystack_first_index');
  • haystack/trunk/Haystack_Plugin.php

    r1499944 r1504791  
    2424                'title' => 'API key',
    2525            ),
    26             'client_link' => array(
    27                 'title' => 'Client Link',
     26            'client_hash' => array(
     27                'title' => 'Client Hash',
    2828                'hide' => true,
    2929            ),
     
    150150       
    151151        //Data
    152         $client_url        = $this->getOption('client_link');
     152        $client_hash        = $this->getOption('client_hash');
    153153        $trig              = $this->getOption('trig');
    154154        $quick_links       = $this->get_quick_links();
     
    157157
    158158        $data = array(
    159             'client_url' => $client_url,
     159            'client_hash' => $client_hash,
    160160            'analytics' => HAYSTACK_ANALYTICS,
    161161            'quick_links' => $quick_links_title.$quick_links,
     
    377377
    378378            if (isset($data->status) && $data->status == 'success') {
    379                 $this->updateOption('client_link', $data->clientLink);
     379                $this->updateOption('client_hash', $data->siteHash);
    380380                return true;
    381381            }
     
    389389        $steps = array(
    390390            'key' => $this->getOption('api_key',false),
    391             'link' => $this->getOption('client_link', false),
     391            'hash' => $this->getOption('client_hash', false),
    392392            'index' => $this->getOption('haystack_first_index', false),
    393393            'types' => $this->getOption('post_types', false),
    394394        );
    395395
    396         if ($steps['key'] && $steps['link']) {
     396        if ($steps['key'] && $steps['hash']) {
    397397            $i++;
    398398            if ($steps['index']) {
Note: See TracChangeset for help on using the changeset viewer.