This commit is contained in:
Shish 2015-09-27 11:01:59 +01:00
parent cdcd762a52
commit 80f5a016c2

View File

@ -37,26 +37,26 @@ class ExtensionInfo {
if(preg_match("/Name: (.*)/", $line, $matches)) {
$this->name = $matches[1];
}
if(preg_match("/Visibility: (.*)/", $line, $matches)) {
else if(preg_match("/Visibility: (.*)/", $line, $matches)) {
$this->visibility = $matches[1];
}
if(preg_match("/Link: (.*)/", $line, $matches)) {
else if(preg_match("/Link: (.*)/", $line, $matches)) {
$this->link = $matches[1];
if($this->link[0] == "/") {
$this->link = make_link(substr($this->link, 1));
}
}
if(preg_match("/Version: (.*)/", $line, $matches)) {
else if(preg_match("/Version: (.*)/", $line, $matches)) {
$this->version = $matches[1];
}
if(preg_match("/Author: (.*) [<\(](.*@.*)[>\)]/", $line, $matches)) {
else if(preg_match("/Author: (.*) [<\(](.*@.*)[>\)]/", $line, $matches)) {
$this->author = $matches[1];
$this->email = $matches[2];
}
else if(preg_match("/Author: (.*)/", $line, $matches)) {
$this->author = $matches[1];
}
if(preg_match("/(.*)Description: ?(.*)/", $line, $matches)) {
else if(preg_match("/(.*)Description: ?(.*)/", $line, $matches)) {
$this->description = $matches[2];
$start = $matches[1]." ";
$start_len = strlen($start);
@ -65,7 +65,7 @@ class ExtensionInfo {
$i++;
}
}
if(preg_match("/(.*)Documentation: ?(.*)/", $line, $matches)) {
else if(preg_match("/(.*)Documentation: ?(.*)/", $line, $matches)) {
$this->documentation = $matches[2];
$start = $matches[1]." ";
$start_len = strlen($start);
@ -75,7 +75,7 @@ class ExtensionInfo {
}
$this->documentation = str_replace('$site', make_http(get_base_href()), $this->documentation);
}
if(preg_match("/\*\//", $line, $matches)) {
else if(preg_match("/\*\//", $line, $matches)) {
break;
}
}