Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
53c99224
Commit
53c99224
authored
Oct 04, 2018
by
Karl Hasselbring
Committed by
Dominik Hebeler
Oct 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Fehlerbehandlung für nicht ladbare Quicktips verbessern"
parent
40316ff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
app/MetaGer.php
app/MetaGer.php
+1
-1
app/Models/Quicktips/Quicktips.php
app/Models/Quicktips/Quicktips.php
+12
-2
No files found.
app/MetaGer.php
View file @
53c99224
...
...
@@ -92,7 +92,7 @@ class MetaGer
}
# Erstellt aus den gesammelten Ergebnissen den View
public
function
createView
(
$quicktipResults
=
null
)
public
function
createView
(
$quicktipResults
=
[]
)
{
# Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können
$focusPages
=
[];
...
...
app/Models/Quicktips/Quicktips.php
View file @
53c99224
...
...
@@ -65,11 +65,21 @@ class Quicktips
}
}
/**
* Load the current Quicktip results
* 1. Retrieve the raw results
* 2. Parse the results
* Returns an empty array if no results are found
*/
public
function
loadResults
()
{
$resultsRaw
=
$this
->
retrieveResults
(
$this
->
hash
);
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
if
(
$resultsRaw
)
{
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
}
else
{
return
[];
}
}
public
function
retrieveResults
(
$hash
)
...
...
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