Update base.php

This commit is contained in:
Namhyeon Go 2018-02-13 17:48:26 +09:00 committed by GitHub
parent d5b3d98e0e
commit 5ad7a5aca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,6 @@ if(!function_exists('renderView')) {
extract($data);
}
// set user profile
if(function_exists("get_user_profile")) {
$user_profile = get_user_profile();
}
// load view file
$viewfile = './view/' . $name . '.php';
if(file_exists($viewfile)) {
@ -22,16 +17,10 @@ if(!function_exists('renderView')) {
// load helper
if(!function_exists('loadHelper')) {
function loadHelper($name) {
// set user profile
if(function_exists("get_user_profile")) {
$user_profile = get_user_profile();
}
// load helper file
$helperfile = './helper/' . $name . '.php';
if(file_exists($helperfile)) {
include($helperfile);
include($helperfile);
}
}
}