piwik/plugins/SitesManager/API.php
/**
     * Check that the array of URLs are valid URLs
     *
     * @param array $urls
     * @throws Exception if any of the urls is not valid
     */
Check that the array of URLs are valid URLs
@param array $urls
@throws Exception if any of the urls is not valid
Check that the array of URLs are valid URLs @param array $urls @throws Exception if any of the urls is not valid
private function checkUrls($urls)
    {
        foreach ($urls as $url) {
            if (!$this->isValidUrl($url)) {
                throw new Exception(sprintf(Piwik::translate("SitesManager_ExceptionInvalidUrl"), $url));
            }
        }
    }
private function checkUrls ( $ urls ) { foreach ( $ urls as $ url ) { if ( ! $ this -> isValidUrl ( $ url ) ) { throw new Exception ( sprintf ( Piwik :: translate ( " SitesManager_ExceptionInvalidUrl " ) , $ url ) ) ; } } }
Check that the array of URLs are valid URLs
 @param array $urls
 @throws Exception if any of the urls is not valid
Check that the array of URLs are valid URLs @param array $urls @throws Exception if any of the urls is not valid