forked from indymedia/epicyon
				
			Handle default theme news avatar
							parent
							
								
									606cb990fc
								
							
						
					
					
						commit
						326e50ef0e
					
				
							
								
								
									
										3
									
								
								theme.py
								
								
								
								
							
							
						
						
									
										3
									
								
								theme.py
								
								
								
								
							|  | @ -1025,7 +1025,10 @@ def setNewsAvatar(baseDir: str, name: str, | ||||||
|     """Sets the avatar for the news account |     """Sets the avatar for the news account | ||||||
|     """ |     """ | ||||||
|     nickname = 'news' |     nickname = 'news' | ||||||
|  |     if name != 'default': | ||||||
|         newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png' |         newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png' | ||||||
|  |     else: | ||||||
|  |         newFilename = baseDir + '/img/icons/avatar_news.png' | ||||||
|     if not os.path.isfile(newFilename): |     if not os.path.isfile(newFilename): | ||||||
|         return |         return | ||||||
|     avatarFilename = \ |     avatarFilename = \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue