Subversion Repositories SmartDukaan

Rev

Rev 14428 | Rev 14445 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14428 Rev 14434
Line 90... Line 90...
90
	);
90
	);
91
 
91
 
92
	public function getByUrl($url) {
92
	public function getByUrl($url) {
93
		$url_parts = parse_url($url);
93
		$url_parts = parse_url($url);
94
		$domain = str_replace('www.','',$url_parts['host']);
94
		$domain = str_replace('www.','',$url_parts['host']);
-
 
95
		$domain = str_replace('m.','',$url_parts['host']);
-
 
96
		$domain = str_replace('dl.','',$url_parts['host']);
95
		$this->recursive = -1;
97
		$this->recursive = -1;
96
		return $this->findByDomain($domain);
98
		return $this->findByDomain($domain);
97
	}
99
	}
98
}
100
}