Check for collective.akismet to detect akismet plugin, not for the Python akismet package.
svn path=/plone.app.discussion/trunk/; revision=37762
This commit is contained in:
		
							parent
							
								
									2dbc337fc7
								
							
						
					
					
						commit
						31c0f7b459
					
				@ -21,7 +21,7 @@ except ImportError:
 | 
			
		||||
 | 
			
		||||
HAS_AKISMET = False
 | 
			
		||||
try:
 | 
			
		||||
    from akismet import Akismet, AkismetError
 | 
			
		||||
    import collective.akismet
 | 
			
		||||
    HAS_AKISMET = True
 | 
			
		||||
except ImportError:
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user