Skip to content

Commit

Permalink
Added 7.x-1.x changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icc committed Aug 18, 2014
1 parent d3cd7ac commit 89d4377
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions h5p.classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ public static function libraryToString($library, $folderName = FALSE) {
* Returns FALSE only if string is not parsable in the normal library
* string formats "Lib.Name-x.y" or "Lib.Name x.y"
*/
public function libraryFromString($libraryString) {
public static function libraryFromString($libraryString) {
$re = '/^([\w0-9\-\.]{1,255})[\-\ ]([0-9]{1,5})\.([0-9]{1,5})$/i';
$matches = array();
$res = preg_match($re, $libraryString, $matches);
Expand Down Expand Up @@ -2185,7 +2185,7 @@ public function validateLibrary(&$value, $semantics) {
}

if (!isset($this->libraries[$value->library])) {
$libspec = $this->h5pC->libraryFromString($value->library);
$libspec = H5PCore::libraryFromString($value->library);
$library = $this->h5pC->loadLibrary($libspec['machineName'], $libspec['majorVersion'], $libspec['minorVersion']);
$library['semantics'] = json_decode($library['semantics']);
$this->libraries[$value->library] = $library;
Expand Down
4 changes: 4 additions & 0 deletions styles/h5p.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ div.h5p-fullscreen {
float: right;
margin-right: 0;
font-size: 2.0em;
line-height: 1;
overflow: hidden;
color: #999;
text-decoration: none;
Expand All @@ -198,6 +199,9 @@ div.h5p-fullscreen {
font-family: 'H5P';
content: "\e88e";
}
.h5p-actions > li {
margin: 0;
}
.h5p-popup-dialog {
position: absolute;
top: 0;
Expand Down

0 comments on commit 89d4377

Please sign in to comment.