mirror of https://github.com/ThunixdotNet/wiki.git
Avoid indefined variable warning
This commit is contained in:
parent
2503482ae2
commit
abf209326c
16
wiki.php
16
wiki.php
|
@ -8,10 +8,6 @@ include('config.php');
|
||||||
include('parsedown-1.7.3/Parsedown.php');
|
include('parsedown-1.7.3/Parsedown.php');
|
||||||
|
|
||||||
$page = $_GET['page'];
|
$page = $_GET['page'];
|
||||||
if (isset($_GET['style']))
|
|
||||||
{
|
|
||||||
$style = $_GET['style'];
|
|
||||||
}
|
|
||||||
$Parsedown = new Parsedown();
|
$Parsedown = new Parsedown();
|
||||||
$Parsedown->setSafeMode(true);
|
$Parsedown->setSafeMode(true);
|
||||||
|
|
||||||
|
@ -19,14 +15,10 @@ if ( $page == "") {
|
||||||
$page = "main";
|
$page = "main";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($style)) {
|
if(isset($_GET['style']))
|
||||||
if ( $site_style == "") {
|
$site_style = $_GET['style'];
|
||||||
$site_style="site";
|
else
|
||||||
}
|
$site_style="site";
|
||||||
}
|
|
||||||
else {
|
|
||||||
$site_style=$style;
|
|
||||||
}
|
|
||||||
|
|
||||||
$header = file_get_contents("$doc_root/includes/header.md");
|
$header = file_get_contents("$doc_root/includes/header.md");
|
||||||
$sidebar = file_get_contents("$doc_root/includes/sidebar.md");
|
$sidebar = file_get_contents("$doc_root/includes/sidebar.md");
|
||||||
|
|
Loading…
Reference in New Issue