Code style cleanup

This commit is contained in:
Hypolite Petovan 2017-11-01 02:29:31 -04:00
commit be5939e02f
3 changed files with 427 additions and 447 deletions

View file

@ -1,18 +1,20 @@
<?php
require_once('include/submit.php');
require_once('include/sync.php');
require_once 'include/submit.php';
require_once 'include/sync.php';
function submit_content(&$a) {
//Decode the URL.
use Friendica\Directory\App;
function submit_content(App &$a)
{
//Decode the URL.
$url = hex2bin(notags(trim($_GET['url'])));
//Currently we simply push RAW URL's to our targets.
sync_push($url);
//Run the submit sequence.
run_submit($url);
exit;
}
//Currently we simply push RAW URL's to our targets.
sync_push($url);
//Run the submit sequence.
run_submit($url);
exit;
}