Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

Commit 2847cfe

Browse files
committed
Add condition for console commands
Currently, fbpixel will break any console commands.
1 parent ebcb320 commit 2847cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FbPixelPlugin.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ public function init()
88
if (
99
craft()->config->get('noop', 'fbpixel') ||
1010
empty(craft()->plugins->getPlugin('commerce')) ||
11-
empty($this->getPixelId())
11+
empty($this->getPixelId()) ||
12+
craft()->isConsole()
1213
) {
1314
return;
1415
}

0 commit comments

Comments
 (0)