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
|
@ -3,6 +3,7 @@
|
|||
require_once('include/attach.php');
|
||||
require_once('include/datetime.php');
|
||||
|
||||
if(! function_exists('wall_attach_post')) {
|
||||
function wall_attach_post(&$a) {
|
||||
|
||||
$r_json = (x($_GET,'response') && $_GET['response']=='json');
|
||||
|
@ -190,3 +191,4 @@ function wall_attach_post(&$a) {
|
|||
killme();
|
||||
// NOTREACHED
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue