1
1
Fork 0

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:
Andrej Stieben 2016-02-05 21:52:39 +01:00
commit db949bb802
123 changed files with 768 additions and 471 deletions

View file

@ -4,6 +4,7 @@
require_once('mod/community.php');
if(! function_exists('update_community_content')) {
function update_community_content(&$a) {
header("Content-type: text/html");
@ -29,5 +30,5 @@ function update_community_content(&$a) {
echo "</section>";
echo "</body></html>\r\n";
killme();
}
}
}