Plugin Directory

Changeset 756729


Ignore:
Timestamp:
08/15/2013 03:03:42 PM (13 years ago)
Author:
marcelioleal
Message:

update tag

Location:
siteapps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • siteapps/tags/3.1/classes/SiteAppsAdmin.php

    r752790 r756729  
    1717       
    1818        $this->installation();
     19       
     20        $this->setPrivateKey();
    1921       
    2022        //add All Scripts here
     
    5052            $this->plugin->options['tag'] = $this->getTag($this->plugin->options['id'],$this->plugin->options['type']);
    5153        }
     54    }
     55   
     56    private function setPrivateKey()
     57    {
     58        $options_old = PluginConfig::getDefaultOptions();
     59        $options = PluginConfig::getOptions();
     60       
     61        $options['private_key'] = $options_old['private_key'];
     62        $options['public_key'] = $options_old['public_key'];
     63       
     64        $pluginConfig = new PluginConfig();
     65        $pluginConfig->saveOptions($options);
     66       
    5267    }
    5368   
  • siteapps/trunk/classes/SiteAppsAdmin.php

    r752790 r756729  
    1717       
    1818        $this->installation();
     19       
     20        $this->setPrivateKey();
    1921       
    2022        //add All Scripts here
     
    5052            $this->plugin->options['tag'] = $this->getTag($this->plugin->options['id'],$this->plugin->options['type']);
    5153        }
     54    }
     55   
     56    private function setPrivateKey()
     57    {
     58        $options_old = PluginConfig::getDefaultOptions();
     59        $options = PluginConfig::getOptions();
     60       
     61        $options['private_key'] = $options_old['private_key'];
     62        $options['public_key'] = $options_old['public_key'];
     63       
     64        $pluginConfig = new PluginConfig();
     65        $pluginConfig->saveOptions($options);
     66       
    5267    }
    5368   
Note: See TracChangeset for help on using the changeset viewer.