1
1
Fork 0
friendica_2019-12_sharedHos.../mod/view.php
Andrej Stieben db949bb802 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.
2016-02-05 21:52:39 +01:00

19 lines
376 B
PHP

<?php
/**
* load view/theme/$current_theme/style.php with friendica contex
*/
if(! function_exists('view_init')) {
function view_init($a) {
header("Content-Type: text/css");
if ($a->argc == 4){
$theme = $a->argv[2];
$THEMEPATH = "view/theme/$theme";
if(file_exists("view/theme/$theme/style.php"))
require_once("view/theme/$theme/style.php");
}
killme();
}
}