mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 05:25:15 +02:00
Updated modules to allow for partial overrides without errors
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
This commit is contained in:
parent
a81d929cdf
commit
db949bb802
123 changed files with 768 additions and 471 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
require_once("include/plugin.php");
|
||||
|
||||
if(! function_exists('statistics_json_init')) {
|
||||
function statistics_json_init(&$a) {
|
||||
|
||||
if (!get_config("system", "nodeinfo")) {
|
||||
|
@ -57,3 +58,4 @@ function statistics_json_init(&$a) {
|
|||
logger("statistics_init: printed ".print_r($statistics, true), LOGGER_DATA);
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue