forked from com2/tagging
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addin new suggestor, fixing some bugs2
- Loading branch information
Eugen Mayer
committed
Oct 17, 2010
1 parent
7b7b338
commit 3468e04
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- tagging_alchemy_suggest.module 2010-07-14 13:38:49.000000000 +0000 | ||
+++ change/tagging_alchemy_suggest.module 2010-10-04 17:59:27.000000000 +0000 | ||
@@ -13,6 +13,8 @@ | ||
} | ||
|
||
$postContent = $node->body; | ||
+ if( null == $postContent ) | ||
+ return; | ||
$entityResult = $alchemyObj->HTMLGetRankedNamedEntities($postContent, "http://www.alchemyapi.com/tools/alchemytagger/?type=post"); | ||
|
||
$keywordParams = new AlchemyAPI_KeywordParams(); | ||
@@ -89,4 +91,4 @@ | ||
} | ||
} | ||
return $returnKeywordsArr; | ||
-} | ||
\ No newline at end of file | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters