diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-22 19:31:39 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-22 19:31:39 -0700 |
commit | 2a59392ba8be974a5deec2e6f15959fde21186ea (patch) | |
tree | e3a62a92e2135810bb51b56a4e1ce2bc0f8ac7a1 /mod | |
parent | feabaedd835ecf06ca8e49d5c284d505e47111ad (diff) | |
download | volse-hubzilla-2a59392ba8be974a5deec2e6f15959fde21186ea.tar.gz volse-hubzilla-2a59392ba8be974a5deec2e6f15959fde21186ea.tar.bz2 volse-hubzilla-2a59392ba8be974a5deec2e6f15959fde21186ea.zip |
change name of module
Diffstat (limited to 'mod')
-rw-r--r-- | mod/oexchange.php | 2 | ||||
-rw-r--r-- | mod/rpost.php | 2 | ||||
-rw-r--r-- | mod/urlinfo.php (renamed from mod/parse_url.php) | 10 |
3 files changed, 8 insertions, 6 deletions
diff --git a/mod/oexchange.php b/mod/oexchange.php index a684bd5d8..867cea6f2 100644 --- a/mod/oexchange.php +++ b/mod/oexchange.php @@ -47,7 +47,7 @@ function oexchange_content(&$a) { $tags = (((x($_REQUEST,'tags')) && strlen($_REQUEST['tags'])) ? '&tags=' . urlencode(notags(trim($_REQUEST['tags']))) : ''); - $ret = z_fetch_url($a->get_baseurl() . '/parse_url?f=&url=' . $url . $title . $description . $tags); + $ret = z_fetch_url($a->get_baseurl() . '/urlinfo?f=&url=' . $url . $title . $description . $tags); if($ret['success']) $s = $ret['body']; diff --git a/mod/rpost.php b/mod/rpost.php index 0c0916646..4a6b87cc6 100644 --- a/mod/rpost.php +++ b/mod/rpost.php @@ -102,7 +102,7 @@ function rpost_content(&$a) { ); if($_REQUEST['url']) { - $x = z_fetch_url(z_root() . '/parse_url?f=&url=' . urlencode($_REQUEST['url'])); + $x = z_fetch_url(z_root() . '/urlinfo?f=&url=' . urlencode($_REQUEST['url'])); if($x['success']) $_REQUEST['body'] = $_REQUEST['body'] . $x['body']; } diff --git a/mod/parse_url.php b/mod/urlinfo.php index 2a6f7663e..6b9be3f6f 100644 --- a/mod/parse_url.php +++ b/mod/urlinfo.php @@ -220,7 +220,9 @@ function arr_add_hashes(&$item,$k) { $item = '#' . $item; } -function parse_url_content(&$a) { +function urlinfo_content(&$a) { + + logger('urlinfo: ' . print_r($_REQUEST,true)); $text = null; $str_tags = ''; @@ -251,7 +253,7 @@ function parse_url_content(&$a) { } } - logger('parse_url: ' . $url); + logger('urlinfo: ' . $url); $result = z_fetch_url($url,false,0,array('novalidate' => true, 'nobody' => true)); if($result['success']) { @@ -315,7 +317,7 @@ function parse_url_content(&$a) { $result = sprintf($template,$url,($title) ? $title : $url,$text) . $str_tags; - logger('parse_url (unparsed): returns: ' . $result); + logger('urlinfo (unparsed): returns: ' . $result); echo $result; killme(); @@ -374,7 +376,7 @@ function parse_url_content(&$a) { $result = sprintf($template,$url,($title) ? $title : $url,$text) . $str_tags; - logger('parse_url: returns: ' . $result, LOGGER_DEBUG); + logger('urlinfo: returns: ' . $result, LOGGER_DEBUG); echo trim($result); killme(); |