function onInitializePlugin() { parent::onInitializePlugin(); if (!isset($this->serviceUrl)) { throw new Exception("must specify a serviceUrl"); } }
function onInitializePlugin() { parent::onInitializePlugin(); if (!isset($this->serviceUrl)) { throw new Exception(_m('A serviceUrl must be specified.')); } }
/** * 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; }
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.')); } }
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.')); } }