"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "library/Icinga/Application/Libraries.php" between
icingaweb2-2.11.3.tar.gz and icingaweb2-2.11.4.tar.gz

About: Icinga Web 2 is an Web interface for Icinga 2, a network and computer system monitoring system.

Libraries.php  (icingaweb2-2.11.3):Libraries.php  (icingaweb2-2.11.4)
skipping to change at line 83 skipping to change at line 83
* *
* @return Library|null * @return Library|null
*/ */
public function get($name) public function get($name)
{ {
$candidate = null; $candidate = null;
foreach ($this->libraries as $library) { foreach ($this->libraries as $library) {
$libraryName = $library->getName(); $libraryName = $library->getName();
if ($libraryName === $name) { if ($libraryName === $name) {
return $library; return $library;
} elseif (explode('/', $libraryName)[1] === $name) { } elseif (strpos($libraryName, '/') !== false && explode('/', $libra ryName)[1] === $name) {
// Also return libs which only partially match // Also return libs which only partially match
$candidate = $library; $candidate = $library;
} }
} }
return $candidate; return $candidate;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)