Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
5c407dfa
Unverified
Commit
5c407dfa
authored
Jan 02, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Fix #30
parent
3872023c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/main/java/org/b3log/solo/service/SkinMgmtService.java
src/main/java/org/b3log/solo/service/SkinMgmtService.java
+16
-2
No files found.
src/main/java/org/b3log/solo/service/SkinMgmtService.java
View file @
5c407dfa
...
@@ -35,7 +35,7 @@ import java.util.Set;
...
@@ -35,7 +35,7 @@ import java.util.Set;
* Skin management service.
* Skin management service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
1, Jun 13, 2019
* @version 1.0.0.
2, Jan 2, 2020
* @since 3.5.0
* @since 3.5.0
*/
*/
@Service
@Service
...
@@ -78,13 +78,27 @@ public class SkinMgmtService {
...
@@ -78,13 +78,27 @@ public class SkinMgmtService {
+
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
+
"] instead"
,
currentSkinDirName
);
+
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
+
"] instead"
,
currentSkinDirName
);
if
(!
skinDirNames
.
contains
(
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
))
{
if
(!
skinDirNames
.
contains
(
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
))
{
LOGGER
.
log
(
Level
.
ERROR
,
"Not found default skin [dirName="
+
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
LOGGER
.
log
(
Level
.
ERROR
,
"Not found default skin [dirName="
+
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
+
"], please redeploy your Solo and make sure contains the default skin.
If you are using git, try to pull with 'git pull --recurse-submodules'
"
);
+
"], please redeploy your Solo and make sure contains the default skin."
);
System
.
exit
(-
1
);
System
.
exit
(-
1
);
}
}
skin
.
put
(
Option
.
ID_C_SKIN_DIR_NAME
,
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
);
skin
.
put
(
Option
.
ID_C_SKIN_DIR_NAME
,
Option
.
DefaultPreference
.
DEFAULT_SKIN_DIR_NAME
);
updateSkin
(
skin
);
updateSkin
(
skin
);
}
}
final
String
currentMobileSkinDirName
=
skin
.
optString
(
Option
.
ID_C_MOBILE_SKIN_DIR_NAME
);
if
(!
skinDirNames
.
contains
(
currentMobileSkinDirName
))
{
LOGGER
.
log
(
Level
.
WARN
,
"Not found mobile skin [dirName={0}] configured, try to use default mobile skin [dirName="
+
Option
.
DefaultPreference
.
DEFAULT_MOBILE_SKIN_DIR_NAME
+
"] instead"
,
currentMobileSkinDirName
);
if
(!
skinDirNames
.
contains
(
Option
.
DefaultPreference
.
DEFAULT_MOBILE_SKIN_DIR_NAME
))
{
LOGGER
.
log
(
Level
.
ERROR
,
"Not found default mobile skin [dirName="
+
Option
.
DefaultPreference
.
DEFAULT_MOBILE_SKIN_DIR_NAME
+
"], please redeploy your Solo and make sure contains the default mobile skin."
);
System
.
exit
(-
1
);
}
skin
.
put
(
Option
.
ID_C_MOBILE_SKIN_DIR_NAME
,
Option
.
DefaultPreference
.
DEFAULT_MOBILE_SKIN_DIR_NAME
);
updateSkin
(
skin
);
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment