Merge pull request #1195 from annando/1410-new-hook-getsiteinfo

New hook "getsiteinfo" and "page_info_data"
This commit is contained in:
fabrixxm 2014-10-22 08:18:42 +02:00
commit 9d6bcd2572
2 changed files with 27 additions and 7 deletions

View file

@ -333,6 +333,8 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
logger("parseurl_getsiteinfo: Siteinfo for ".$url." ".print_r($siteinfo, true), LOGGER_DEBUG);
call_hooks('getsiteinfo', $siteinfo);
return($siteinfo);
}
@ -410,6 +412,13 @@ function parse_url_content(&$a) {
$siteinfo = parseurl_getsiteinfo($url);
// if ($textmode) {
// require_once("include/items.php");
//
// echo add_page_info_data($siteinfo);
// killme();
// }
$url= $siteinfo["url"];
$sitedata = "";