summaryrefslogtreecommitdiff
path: root/utils/modules
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules')
-rw-r--r--utils/modules/pages.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/utils/modules/pages.php b/utils/modules/pages.php
index 7bf77f9..373db1a 100644
--- a/utils/modules/pages.php
+++ b/utils/modules/pages.php
@@ -26,16 +26,16 @@ class Page {
$modulecodes = array_unique($res[1]);
foreach($modulecodes as $modulecode) {
- $m = explode("?", $modulecode);
- $module = $m[0];
- $params = explode(",", $m[1]);
- if($modules[$module]) {
- $modulestr = $modules[$module]->run($params);
- } else {
- $modulestr = "<p><strong>CMS ERROR: Could not find module: [[" . $modulecode . "]]</strong></p>";
- }
-
- $str = str_replace("[[" . $modulecode . "]]", $modulestr, $str);
+ $m = explode("?", $modulecode);
+ $module = $m[0];
+ $params = explode(",", $m[1]);
+ if($modules[$module]) {
+ $modulestr = $modules[$module]->run($params);
+ } else {
+ $modulestr = "<p><strong>CMS ERROR: Could not find module: [[" . $modulecode . "]]</strong></p>";
+ }
+
+ $str = str_replace("[[" . $modulecode . "]]", $modulestr, $str);
}
}
@@ -90,6 +90,8 @@ class Pages {
case "retry":
if(isset($vars["content"])) $content = $vars["content"];
else $content = $this->pages[$vars["title"]]->content;
+
+ echo "<p>See <a rel=\"external\" href=\"http://daringfireball.net/projects/markdown/syntax\">markdown</a> syntax.</p>";
beginform("preview");
hidden($vars);