or else
This commit is contained in:
parent
cdcd762a52
commit
80f5a016c2
@ -37,26 +37,26 @@ class ExtensionInfo {
|
|||||||
if(preg_match("/Name: (.*)/", $line, $matches)) {
|
if(preg_match("/Name: (.*)/", $line, $matches)) {
|
||||||
$this->name = $matches[1];
|
$this->name = $matches[1];
|
||||||
}
|
}
|
||||||
if(preg_match("/Visibility: (.*)/", $line, $matches)) {
|
else if(preg_match("/Visibility: (.*)/", $line, $matches)) {
|
||||||
$this->visibility = $matches[1];
|
$this->visibility = $matches[1];
|
||||||
}
|
}
|
||||||
if(preg_match("/Link: (.*)/", $line, $matches)) {
|
else if(preg_match("/Link: (.*)/", $line, $matches)) {
|
||||||
$this->link = $matches[1];
|
$this->link = $matches[1];
|
||||||
if($this->link[0] == "/") {
|
if($this->link[0] == "/") {
|
||||||
$this->link = make_link(substr($this->link, 1));
|
$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];
|
$this->version = $matches[1];
|
||||||
}
|
}
|
||||||
if(preg_match("/Author: (.*) [<\(](.*@.*)[>\)]/", $line, $matches)) {
|
else if(preg_match("/Author: (.*) [<\(](.*@.*)[>\)]/", $line, $matches)) {
|
||||||
$this->author = $matches[1];
|
$this->author = $matches[1];
|
||||||
$this->email = $matches[2];
|
$this->email = $matches[2];
|
||||||
}
|
}
|
||||||
else if(preg_match("/Author: (.*)/", $line, $matches)) {
|
else if(preg_match("/Author: (.*)/", $line, $matches)) {
|
||||||
$this->author = $matches[1];
|
$this->author = $matches[1];
|
||||||
}
|
}
|
||||||
if(preg_match("/(.*)Description: ?(.*)/", $line, $matches)) {
|
else if(preg_match("/(.*)Description: ?(.*)/", $line, $matches)) {
|
||||||
$this->description = $matches[2];
|
$this->description = $matches[2];
|
||||||
$start = $matches[1]." ";
|
$start = $matches[1]." ";
|
||||||
$start_len = strlen($start);
|
$start_len = strlen($start);
|
||||||
@ -65,7 +65,7 @@ class ExtensionInfo {
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(preg_match("/(.*)Documentation: ?(.*)/", $line, $matches)) {
|
else if(preg_match("/(.*)Documentation: ?(.*)/", $line, $matches)) {
|
||||||
$this->documentation = $matches[2];
|
$this->documentation = $matches[2];
|
||||||
$start = $matches[1]." ";
|
$start = $matches[1]." ";
|
||||||
$start_len = strlen($start);
|
$start_len = strlen($start);
|
||||||
@ -75,7 +75,7 @@ class ExtensionInfo {
|
|||||||
}
|
}
|
||||||
$this->documentation = str_replace('$site', make_http(get_base_href()), $this->documentation);
|
$this->documentation = str_replace('$site', make_http(get_base_href()), $this->documentation);
|
||||||
}
|
}
|
||||||
if(preg_match("/\*\//", $line, $matches)) {
|
else if(preg_match("/\*\//", $line, $matches)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user