Skip to content

Commit

Permalink
count_modules null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-prakash committed Aug 9, 2022
1 parent d445f13 commit fce80ed
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions plugins/system/helixultimate/src/Core/HelixUltimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ private function reshape_device_class($device = '', $class = '')
*/
public function count_modules($position)
{
$position = Helper::CheckNull($position);
return ($this->doc->countModules($position) || $this->has_feature($position));
}

Expand Down Expand Up @@ -1017,17 +1018,6 @@ private function has_feature($position)
*/
public function after_body()
{
// if ($this->params->get('compress_css'))
// {
// $this->compress_css();
// }

// if ($this->params->get('compress_js'))
// {
// $this->compress_js($this->params->get('exclude_js'));
// }


if ($before_body = $this->params->get('before_body'))
{
echo $before_body . "\n";
Expand Down

0 comments on commit fce80ed

Please sign in to comment.