diff --git a/manual/content.php b/manual/content.php
index b69897514..193271bc9 100644
--- a/manual/content.php
+++ b/manual/content.php
@@ -8,9 +8,14 @@
$indexes = explode('.', $v['index']);
$level = count($indexes);
$e = explode(' - ', $v['name']);
-
+ $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . $v['name'] . '.php';
+
print '
";
+ . urlencode($v['name']) . ">" . end($e) ."";
+ if ( ! file_exists($file)) {
+ //print "[code]";
+ }
+ print "";
}
} else {
diff --git a/manual/documentation2.php b/manual/documentation2.php
index 0ad5dad79..67e4372db 100644
--- a/manual/documentation2.php
+++ b/manual/documentation2.php
@@ -76,24 +76,28 @@ class DocTool
return $ret;
}
- public function renderBlock($name) {
+ public function renderBlock($name)
+ {
- if(file_exists("docs/$name.php")) {
+ if (file_exists("docs/$name.php")) {
$c = file_get_contents("docs/$name.php");
- if(substr($c, 0, 5) == "') !== false) {
+ print $c;
} else {
print $this->wiki->transform($c) . "
";
}
}
- if(file_exists("codes/$name.php")) {
+ if (file_exists("codes/$name.php")) {
$c = file_get_contents("codes/$name.php");
$c = trim($c);
$this->renderCode($c);
}
}
- public function renderCode($code = null) {
+ public function renderCode($code = null)
+ {
if( ! empty($code)) {
$this->highlighter->loadString($code);