Ejemplo n.º 1
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         throw new Exception("must specify a serviceUrl");
     }
 }
Ejemplo n.º 2
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         throw new Exception(_m('A serviceUrl must be specified.'));
     }
 }
Ejemplo n.º 3
0
 /**
  * Add bit.ly to the list of available URL shorteners if it's configured,
  * otherwise leave it out.
  *
  * @param array $shorteners
  * @return boolean hook return value
  */
 function onGetUrlShorteners(&$shorteners)
 {
     if ($this->getLogin() && $this->getApiKey()) {
         return parent::onGetUrlShorteners($shorteners);
     }
     return true;
 }
Ejemplo n.º 4
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         // TRANS: Exception thrown when URL shortening plugin was configured incorrectly.
         throw new Exception(_m('You must specify a serviceUrl for ptit URL shortening.'));
     }
 }
Ejemplo n.º 5
0
 function onInitializePlugin()
 {
     parent::onInitializePlugin();
     if (!isset($this->serviceUrl)) {
         // TRANS: Exception thrown when the TightUrl plugin has been configured incorrectly.
         throw new Exception(_m('You must specify a serviceUrl.'));
     }
 }