Revert "Updated modules to allow for partial overrides without errors"

This reverts commit db949bb802.
This commit is contained in:
fabrixxm 2016-02-07 15:11:34 +01:00
parent d6cf791677
commit b202e02fbf
123 changed files with 471 additions and 768 deletions

View file

@ -1,14 +1,12 @@
<?php
if(! function_exists('share_init')) {
function share_init(&$a) {
$post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
if((! $post_id) || (! local_user()))
killme();
$r = q("SELECT item.*, contact.network FROM `item`
inner join contact on `item`.`contact-id` = `contact`.`id`
$r = q("SELECT item.*, contact.network FROM `item`
inner join contact on `item`.`contact-id` = `contact`.`id`
WHERE `item`.`id` = %d AND `item`.`uid` = %d LIMIT 1",
intval($post_id),
@ -42,9 +40,7 @@ function share_init(&$a) {
echo $o;
killme();
}
}
if(! function_exists('share_header')) {
function share_header($author, $profile, $avatar, $guid, $posted, $link) {
$header = "[share author='".str_replace(array("'", "[", "]"), array("&#x27;", "&#x5B;", "&#x5D;"),$author).
"' profile='".str_replace(array("'", "[", "]"), array("&#x27;", "&#x5B;", "&#x5D;"),$profile).
@ -60,4 +56,3 @@ function share_header($author, $profile, $avatar, $guid, $posted, $link) {
return $header;
}
}