mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
Revert "Updated modules to allow for partial overrides without errors"
This reverts commit db949bb802
.
This commit is contained in:
parent
d6cf791677
commit
b202e02fbf
123 changed files with 471 additions and 768 deletions
|
@ -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("'", "[", "]"),$author).
|
||||
"' profile='".str_replace(array("'", "[", "]"), array("'", "[", "]"),$profile).
|
||||
|
@ -60,4 +56,3 @@ function share_header($author, $profile, $avatar, $guid, $posted, $link) {
|
|||
|
||||
return $header;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue