Took 2 minutes
This commit is contained in:
Tobias Hopp 2020-10-04 20:29:26 +02:00
parent 91e29db062
commit e863552393
2 changed files with 14 additions and 8 deletions

18
.idea/workspace.xml generated
View File

@ -20,7 +20,6 @@
</component>
<component name="ChangeListManager">
<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$/model/FaqModel.class.inc.php" beforeDir="false" afterPath="$PROJECT_DIR$/model/FaqModel.class.inc.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -32,7 +31,7 @@
<execution />
</component>
<component name="DarkyenusTimeTracker">
<option name="totalTimeSeconds" value="84156" />
<option name="totalTimeSeconds" value="84240" />
<option name="gitIntegration" value="true" />
<option name="naggedAbout" value="1" />
</component>
@ -78,7 +77,7 @@
<updated>1601618466935</updated>
<workItem from="1601618467981" duration="36776000" />
<workItem from="1601809534320" duration="1558000" />
<workItem from="1601811106543" duration="13822000" />
<workItem from="1601811106543" duration="13906000" />
</task>
<task id="LOCAL-00001" summary="Initial commit">
<created>1601618764031</created>
@ -227,7 +226,14 @@
<option name="project" value="LOCAL" />
<updated>1601834807755</updated>
</task>
<option name="localTasksCounter" value="22" />
<task id="LOCAL-00022" summary="Updating FAQ-Gui">
<created>1601836071057</created>
<option name="number" value="00022" />
<option name="presentableId" value="LOCAL-00022" />
<option name="project" value="LOCAL" />
<updated>1601836071057</updated>
</task>
<option name="localTasksCounter" value="23" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -304,10 +310,10 @@
<screen x="0" y="34" width="1920" height="1046" />
</state>
<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="1601834809056">
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601836072944">
<screen x="0" y="34" width="1920" height="1046" />
</state>
<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="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601836072944" />
<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" />
</state>

View File

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