diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-11 14:02:57 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-11 14:04:44 -0500 |
commit | 014d6b1d19b6ae5de8d87f055397993f80579f74 (patch) | |
tree | 55faca777c7ef1f8576b21f98dc4e3f74e99ac4d /actions | |
parent | 086759f32ab6d2c5aadecb57941e7e14015b8bd6 (diff) |
Redid how URL shorteners work. This way is much more like how Evan wants events to work (and more like how the rest of SN works).
Diffstat (limited to 'actions')
-rw-r--r-- | actions/othersettings.php | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/actions/othersettings.php b/actions/othersettings.php index d32a2d651..d52a634ac 100644 --- a/actions/othersettings.php +++ b/actions/othersettings.php @@ -97,20 +97,15 @@ class OthersettingsAction extends AccountSettingsAction $this->elementStart('fieldset'); $this->hidden('token', common_session_token()); - $services=array(); - global $_shorteners; - if($_shorteners){ - foreach($_shorteners as $name=>$value) - { - $services[$name]=$name; - if(!empty($value['info']['freeService'])){ - // I18N - $services[$name].=' (free service)'; - } + Event::handle('GetUrlShorteners', array(&$shorteners)); + foreach($shorteners as $name=>$value) + { + $services[$name]=$name; + if($value['freeService']){ + $services[$name].=_(' (free service)'); } } asort($services); - $services['']='None'; $this->elementStart('ul', 'form_data'); $this->elementStart('li'); |