mirror of
https://github.com/ThunixdotNet/wiki.git
synced 2026-01-24 04:10:18 +00:00
Avoid indefined variable warning
This commit is contained in:
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");
|
||||||
|
|||||||
Reference in New Issue
Block a user