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:
+2
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
require_once('include/acl_selectors.php');
|
||||
|
||||
if(! function_exists('editpost_content')) {
|
||||
function editpost_content(&$a) {
|
||||
|
||||
$o = '';
|
||||
@@ -150,7 +151,5 @@ function editpost_content(&$a) {
|
||||
));
|
||||
|
||||
return $o;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user