Skip to content

Commit

Permalink
html_process 변수에 method가 존재하는지 체크과정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 18, 2019
1 parent d560892 commit d10a166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2461,15 +2461,15 @@ function add_stylesheet($stylesheet, $order=0)
{
global $html_process;

if(trim($stylesheet))
if(trim($stylesheet) && method_exists($html_process, 'merge_stylesheet') )
$html_process->merge_stylesheet($stylesheet, $order);
}

function add_javascript($javascript, $order=0)
{
global $html_process;

if(trim($javascript))
if(trim($javascript) && method_exists($html_process, 'merge_javascript') )
$html_process->merge_javascript($javascript, $order);
}

Expand Down

0 comments on commit d10a166

Please sign in to comment.