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
+4 -6
View File
@@ -1,13 +1,11 @@
<?php
require_once('mod/settings.php');
if(! function_exists('delegate_init')) {
function delegate_init(&$a) {
return settings_init($a);
}
}
if(! function_exists('delegate_content')) {
function delegate_content(&$a) {
if(! local_user()) {
@@ -92,12 +90,12 @@ function delegate_content(&$a) {
// find every contact who might be a candidate for delegation
$r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s'
$r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s'
and contact.uid = %d and contact.self = 0 and network = '%s' ",
dbesc(normalise_link($a->get_baseurl())),
intval(local_user()),
dbesc(NETWORK_DFRN)
);
);
if(! count($r)) {
notice( t('No potential page delegates located.') . EOL);
@@ -146,5 +144,5 @@ function delegate_content(&$a) {
return $o;
}
}