Skip to content

Commit 069d11a

Browse files
committed
🎨 升级 Lakte 2.3.13
1 parent 7d44435 commit 069d11a

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
Description: Solo POM.
4-
Version: 3.17.1.41, Jun 27, 2017
4+
Version: 3.17.1.42, Jul 8, 2017
55
Author: <a href="http://88250.b3log.org">Liang Ding</a>
66
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
77
Author: <a href="http://vanessa.b3log.org">Vanessa</a>
@@ -74,7 +74,7 @@
7474
<properties>
7575
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7676

77-
<org.b3log.latke.version>2.3.12</org.b3log.latke.version>
77+
<org.b3log.latke.version>2.3.13</org.b3log.latke.version>
7878

7979
<servlet.version>3.1.0</servlet.version>
8080
<slf4j.version>1.7.5</slf4j.version>

src/main/java/org/b3log/solo/Starter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static void main(final String[] args) throws Exception {
138138
Latkes.setStaticServerPort(staticServerPort);
139139
String runtimeMode = commandLine.getOptionValue("runtime_mode");
140140
if (null != runtimeMode) {
141-
Latkes.setRuntimeMode(RuntimeMode.valueOf(runtimeMode));
141+
Latkes.setRuntimeMode(Latkes.RuntimeMode.valueOf(runtimeMode));
142142
}
143143
Latkes.setScanPath("org.b3log.solo"); // For Latke IoC
144144

src/main/java/org/b3log/solo/dev/ArticleGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class ArticleGenerator {
7777
@RequestProcessing(value = "/dev/articles/gen/*", method = HTTPRequestMethod.GET)
7878
public void genArticles(final HTTPRequestContext context, final HttpServletRequest request, final HttpServletResponse response)
7979
throws IOException {
80-
if (RuntimeMode.DEVELOPMENT != Latkes.getRuntimeMode()) {
80+
if (Latkes.RuntimeMode.DEVELOPMENT != Latkes.getRuntimeMode()) {
8181
LOGGER.log(Level.WARN, "Article generation just for development mode, " + "current runtime mode is [{0}]",
8282
Latkes.getRuntimeMode());
8383
response.sendRedirect(Latkes.getServePath());

src/main/java/org/b3log/solo/processor/console/AdminConsole.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ public void showAdminFunctions(final HttpServletRequest request, final HTTPReque
233233
final Map<String, String> langs = langPropsService.getAll(locale);
234234
final Map<String, Object> dataModel = renderer.getDataModel();
235235

236-
dataModel.put("supportExport", RuntimeDatabase.MYSQL == Latkes.getRuntimeDatabase()
237-
|| RuntimeDatabase.H2 == Latkes.getRuntimeDatabase());
236+
dataModel.put("supportExport", Latkes.RuntimeDatabase.MYSQL == Latkes.getRuntimeDatabase()
237+
|| Latkes.RuntimeDatabase.H2 == Latkes.getRuntimeDatabase());
238238
dataModel.putAll(langs);
239239
Keys.fillRuntime(dataModel);
240240
dataModel.put(Option.ID_C_LOCALE_STRING, locale.toString());
@@ -310,9 +310,8 @@ public void exportSQL(final HttpServletRequest request, final HttpServletRespons
310310
return;
311311
}
312312

313-
final RuntimeDatabase runtimeDatabase = Latkes.getRuntimeDatabase();
314-
315-
if (RuntimeDatabase.H2 != runtimeDatabase && RuntimeDatabase.MYSQL != runtimeDatabase) {
313+
final Latkes.RuntimeDatabase runtimeDatabase = Latkes.getRuntimeDatabase();
314+
if (Latkes.RuntimeDatabase.H2 != runtimeDatabase && Latkes.RuntimeDatabase.MYSQL != runtimeDatabase) {
316315
context.renderJSON().renderMsg("Just support MySQL/H2 export now");
317316

318317
return;
@@ -323,7 +322,7 @@ public void exportSQL(final HttpServletRequest request, final HttpServletRespons
323322
final String dbURL = Latkes.getLocalProperty("jdbc.URL");
324323
String sql; // exported SQL script
325324

326-
if (RuntimeDatabase.MYSQL == runtimeDatabase) {
325+
if (Latkes.RuntimeDatabase.MYSQL == runtimeDatabase) {
327326
String db = StringUtils.substringAfterLast(dbURL, "/");
328327
db = StringUtils.substringBefore(db, "?");
329328

@@ -339,7 +338,7 @@ public void exportSQL(final HttpServletRequest request, final HttpServletRespons
339338

340339
return;
341340
}
342-
} else if (RuntimeDatabase.H2 == runtimeDatabase) {
341+
} else if (Latkes.RuntimeDatabase.H2 == runtimeDatabase) {
343342
final Connection connection = Connections.getConnection();
344343
final Statement statement = connection.createStatement();
345344

src/main/java/org/b3log/solo/service/InitService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void init(final JSONObject requestJSONObject) throws ServiceException {
204204

205205
LOGGER.log(Level.INFO, "Solo is running with database [{0}], creates all tables", Latkes.getRuntimeDatabase());
206206

207-
if (RuntimeDatabase.H2 == Latkes.getRuntimeDatabase()) {
207+
if (Latkes.RuntimeDatabase.H2 == Latkes.getRuntimeDatabase()) {
208208
String dataDir = Latkes.getLocalProperty("jdbc.URL");
209209
dataDir = dataDir.replace("~", System.getProperty("user.home"));
210210
LOGGER.log(Level.INFO, "YOUR DATA will be stored in directory [" + dataDir + "], "

0 commit comments

Comments
 (0)