]> git.mxchange.org Git - friendica.git/blob - include/directory.php
Merge remote-tracking branch 'refs/remotes/friendica/develop' into develop
[friendica.git] / include / directory.php
1 <?php
2 use \Friendica\Core\Config;
3
4 function directory_run(&$argv, &$argc){
5         if ($argc != 2) {
6                 return;
7         }
8
9         $dir = get_config('system', 'directory');
10
11         if (!strlen($dir)) {
12                 return;
13         }
14
15         $dir .= "/submit";
16
17         $arr = array('url' => $argv[1]);
18
19         call_hooks('globaldir_update', $arr);
20
21         logger('Updating directory: ' . $arr['url'], LOGGER_DEBUG);
22         if (strlen($arr['url'])) {
23                 fetch_url($dir . '?url=' . bin2hex($arr['url']));
24         }
25         return;
26 }