Yuki Takei пре 8 година
родитељ
комит
6252760c43

+ 2 - 2
lib/util/middlewares.js

@@ -89,7 +89,7 @@ exports.swigFilters = function(app, swig) {
       return user.image;
     }
     else {
-      return '/images/user.svg';
+      return '/images/icons/user.svg';
     }
   };
 
@@ -165,7 +165,7 @@ exports.swigFilters = function(app, swig) {
 
     swig.setFilter('picture', function(user) {
       if (!user) {
-        return '/images/user.svg';
+        return '/images/icons/user.svg';
       }
 
       if (user.isGravatarEnabled === true) {

+ 0 - 0
public/images/user.svg → public/images/icons/user.svg


+ 1 - 1
resource/js/components/User/UserPicture.js

@@ -12,7 +12,7 @@ export default class UserPicture extends React.Component {
     }
     // uploaded image
     else {
-      return user.image || '/images/user.svg';
+      return user.image || '/images/icons/user.svg';
     }
   }
 

+ 2 - 2
resource/js/legacy/crowi.js

@@ -92,10 +92,10 @@ Crowi.setCaretLineAndFocusToEditor = function() {
 // original: middleware.swigFilter
 Crowi.userPicture = function (user) {
   if (!user) {
-    return '/images/user.svg';
+    return '/images/icons/user.svg';
   }
 
-  return user.image || '/images/user.svg';
+  return user.image || '/images/icons/user.svg';
 };
 
 Crowi.modifyScrollTop = function() {