Plugin Directory

Changeset 1703256


Ignore:
Timestamp:
07/26/2017 05:36:54 PM (9 years ago)
Author:
postpostmodern
Message:

0.9.8.1

Location:
aitch-ref/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aitch-ref/trunk/_plugin.php

    r1703231 r1703256  
    44Plugin URI:     http://wordpress.org/extend/plugins/aitch-ref/
    55Description:    href junk. Requires PHP >= 5.4 and Wordpress >= 3.0
    6 Version:        0.9.8
     6Version:        0.9.8.1
    77Author:         postpostmodern, pinecone-dot-website
    88Author URI:     http://rack.and.pinecone.website/
  • aitch-ref/trunk/lib/aitchref/AitchRef.php

    r1703231 r1703256  
    2020        $this->settings['urls'] = array_reverse($this->settings['urls']);
    2121       
    22         $this->server_url = defined( 'AITCH_REF_SERVER_URL' ) ? AITCH_REF_SERVER_URL : is_ssl() ? 'https://'.$_SERVER['HTTP_HOST'] : 'http://'.$_SERVER['HTTP_HOST'];
    23 
     22        $this->server_url = defined( 'AITCH_REF_SERVER_URL' ) ? AITCH_REF_SERVER_URL : (is_ssl() ? 'https://'.$_SERVER['HTTP_HOST'] : 'http://'.$_SERVER['HTTP_HOST']);
     23       
    2424        add_action( 'plugins_loaded', [$this, 'setup'] );
    2525    }
     
    3232    public function get_setting($which)
    3333    {
    34        
    3534        if (!isset($this->settings[$which])) {
    3635            switch ($which) {
     
    6160        }
    6261
    63             return $setting;
     62        return $setting;
    6463    }
    6564
     
    6766    *
    6867    */
    69     public static function instance(){
    70         if( !self::$instance )
     68    public static function instance()
     69    {
     70        if (!self::$instance) {
    7171            self::$instance = new self;
     72        }
    7273
    7374        return self::$instance;
     
    142143            $url2 = str_replace( $this->get_setting('urls'), $this->server_url, $url );
    143144        }
    144    
     145       
    145146        return $url2;
    146147    }
Note: See TracChangeset for help on using the changeset viewer.