Plugin Directory

Changeset 191688


Ignore:
Timestamp:
01/08/2010 11:21:25 PM (16 years ago)
Author:
zeeg
Message:

Tweak MySpace domain catcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lifestream/trunk/extensions/myspace/extension.inc.php

    r191681 r191688  
    1717    }
    1818   
    19     function _get_domain()
    20     {
    21         if ($this->get_option('permalink_url')) $url = $this->get_option('permalink_url');
    22         else $url = $this->get_option('url');
    23         preg_match('#^(http://)?([a-z0-9\-\.]*\.)?([a-z0-9\-]+(?:\.[a-z0-9\-]+)?)/?#i', $url, $matches);
    24         return $matches[3];
    25     }
    26    
    2719    function get_public_name()
    2820    {
     
    3123            return $this->get_option('feed_label');
    3224        }
    33         return $this->_get_domain();
     25        return 'MySpace Blog';
    3426    }
    3527   
Note: See TracChangeset for help on using the changeset viewer.