Exemplo n.º 1
0
Arquivo: item.php Projeto: nrbrt/news
 public function setUrl($url)
 {
     $url = trim($url);
     if (strpos($url, 'http') === 0 || strpos($url, 'magnet') === 0) {
         parent::setUrl($url);
     }
 }
Exemplo n.º 2
0
Arquivo: feed.php Projeto: nrbrt/news
 public function setUrl($url)
 {
     $url = trim($url);
     if (strpos($url, 'http') === 0) {
         parent::setUrl($url);
         $this->setUrlHash(md5($url));
     }
 }