Updating FAQ-Gui

Took 13 minutes
This commit is contained in:
Tobias Hopp 2020-10-04 20:27:51 +02:00
parent 1abd098b68
commit 91e29db062
2 changed files with 17 additions and 10 deletions

23
.idea/workspace.xml generated
View File

@ -21,8 +21,7 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fc13552d-b118-4828-b78f-fc8714e0cfdc" name="Default Changelist" comment="Final COMMIT!!!"> <list default="true" id="fc13552d-b118-4828-b78f-fc8714e0cfdc" name="Default Changelist" comment="Final COMMIT!!!">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/faq.tmpl.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/faq.tmpl.html" afterDir="false" /> <change beforePath="$PROJECT_DIR$/model/FaqModel.class.inc.php" beforeDir="false" afterPath="$PROJECT_DIR$/model/FaqModel.class.inc.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/vendor/js/faq.js" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/js/faq.js" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -33,7 +32,7 @@
<execution /> <execution />
</component> </component>
<component name="DarkyenusTimeTracker"> <component name="DarkyenusTimeTracker">
<option name="totalTimeSeconds" value="83257" /> <option name="totalTimeSeconds" value="84156" />
<option name="gitIntegration" value="true" /> <option name="gitIntegration" value="true" />
<option name="naggedAbout" value="1" /> <option name="naggedAbout" value="1" />
</component> </component>
@ -79,7 +78,7 @@
<updated>1601618466935</updated> <updated>1601618466935</updated>
<workItem from="1601618467981" duration="36776000" /> <workItem from="1601618467981" duration="36776000" />
<workItem from="1601809534320" duration="1558000" /> <workItem from="1601809534320" duration="1558000" />
<workItem from="1601811106543" duration="12734000" /> <workItem from="1601811106543" duration="13822000" />
</task> </task>
<task id="LOCAL-00001" summary="Initial commit"> <task id="LOCAL-00001" summary="Initial commit">
<created>1601618764031</created> <created>1601618764031</created>
@ -221,7 +220,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1601828809866</updated> <updated>1601828809866</updated>
</task> </task>
<option name="localTasksCounter" value="21" /> <task id="LOCAL-00021" summary="Updating FAQ-Gui">
<created>1601834807755</created>
<option name="number" value="00021" />
<option name="presentableId" value="LOCAL-00021" />
<option name="project" value="LOCAL" />
<updated>1601834807755</updated>
</task>
<option name="localTasksCounter" value="22" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -258,7 +264,8 @@
<MESSAGE value="Added room_owner and welcome message thingy(server-side)" /> <MESSAGE value="Added room_owner and welcome message thingy(server-side)" />
<MESSAGE value="Fixing a little bug" /> <MESSAGE value="Fixing a little bug" />
<MESSAGE value="Fixing answer text bug #6" /> <MESSAGE value="Fixing answer text bug #6" />
<option name="LAST_COMMIT_MESSAGE" value="Fixing answer text bug #6" /> <MESSAGE value="Updating FAQ-Gui" />
<option name="LAST_COMMIT_MESSAGE" value="Updating FAQ-Gui" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047"> <state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
@ -297,10 +304,10 @@
<screen x="0" y="34" width="1920" height="1046" /> <screen x="0" y="34" width="1920" height="1046" />
</state> </state>
<state x="441" y="192" width="1037" height="736" key="SettingsEditor/0.34.1920.1046@0.34.1920.1046" timestamp="1601632853044" /> <state x="441" y="192" width="1037" height="736" key="SettingsEditor/0.34.1920.1046@0.34.1920.1046" timestamp="1601632853044" />
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601828810778"> <state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601834809056">
<screen x="0" y="34" width="1920" height="1046" /> <screen x="0" y="34" width="1920" height="1046" />
</state> </state>
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601828810778" /> <state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601834809056" />
<state x="809" y="122" width="639" height="876" key="com.intellij.database.view.ui.AbstractDbRefactoringDialog" timestamp="1601632983240"> <state x="809" y="122" width="639" height="876" key="com.intellij.database.view.ui.AbstractDbRefactoringDialog" timestamp="1601632983240">
<screen x="0" y="34" width="1920" height="1046" /> <screen x="0" y="34" width="1920" height="1046" />
</state> </state>

View File

@ -53,9 +53,9 @@ class FaqModel
{ {
$end_answer = '...'; $end_answer = '...';
} }
$result[$index]['question'] = substr( $result[$index]['question'], 0, 50 ) . $end_question; $result[$index]['question'] = mb_substr( $result[$index]['question'], 0, 50 ) . $end_question;
$result[$index]['question'] = str_replace( "\n", ' ', $result[$index]['question'] ); $result[$index]['question'] = str_replace( "\n", ' ', $result[$index]['question'] );
$result[$index]['answer'] = substr( $result[$index]['answer'], 0, 50 ) . $end_answer; $result[$index]['answer'] = mb_substr( $result[$index]['answer'], 0, 50 ) . $end_answer;
$result[$index]['answer'] = str_replace( "\n", ' ', $result[$index]['answer'] ); $result[$index]['answer'] = str_replace( "\n", ' ', $result[$index]['answer'] );
} }