summaryrefslogtreecommitdiff
path: root/utils/modules/pages.php
diff options
context:
space:
mode:
authordeva <deva>2009-04-18 15:54:13 +0000
committerdeva <deva>2009-04-18 15:54:13 +0000
commit02ac0689e8c7e5bd0de99bcda7868c9a7ed4319e (patch)
tree84c7fc1fd246af2dd480de3499fd8f3fc6d87b5b /utils/modules/pages.php
parent2ef60376a100dfca219a2d455a3ff9fbe2210301 (diff)
Added link to syntax page in editor.
Diffstat (limited to 'utils/modules/pages.php')
-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);