mirror of https://github.com/supernets/LibreY.git
gist support with gothub
This commit is contained in:
parent
eaa76b3cfa
commit
50467f2a9c
|
@ -51,6 +51,11 @@
|
|||
$url = $frontend . "/" . $wiki_name . explode($original, $url)[1];
|
||||
}
|
||||
}
|
||||
else if (strpos($url, "gist.github.com") !== false)
|
||||
{
|
||||
$gist_path = explode("gist.github.com", $url)[1];
|
||||
$url = $frontend . "/gist" . $gist_path;
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = $frontend . explode($original, $url)[1];
|
||||
|
|
Loading…
Reference in New Issue