Skip to content

Commit

Permalink
Bug fix and added .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
JWHennessey committed Jun 20, 2015
1 parent d82eefb commit b89e7a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
3 changes: 3 additions & 0 deletions examples/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
7 => 'To be or not to be?',
);




require_once __DIR__ . '/../autoload.php';
$sentiment = new \PHPInsight\Sentiment();
foreach ($strings as $string) {
Expand Down
2 changes: 1 addition & 1 deletion lib/PHPInsight/Sentiment.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function setDataFolder($dataFolder = false, $loadDefaults = false){
$this->dataFolder = __DIR__ . '/data/';
}
else{
if(file_exists($data)){
if(file_exists($dataFolder)){
$this->dataFolder = $dataFolder;
}
else{
Expand Down

0 comments on commit b89e7a7

Please sign in to comment.