summaryrefslogtreecommitdiff
path: root/modules/page.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-08 13:11:33 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-08 13:11:33 +0000
commit7a972daeab5a9a4aa2253ef10acc8a2b5c754cab (patch)
tree890008a8ece29aa54c8096ab7531c0d90dd2bb01 /modules/page.module
parent6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353 (diff)
downloadbrdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.gz
brdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.bz2
- node system:
+ made a small change in the node overview page in the admin section such that it lists both new and updated pages by default. + reworked the filter-mechanism: it is not 100% finished yet but it sure is taking shape.
Diffstat (limited to 'modules/page.module')
-rw-r--r--modules/page.module21
1 files changed, 14 insertions, 7 deletions
diff --git a/modules/page.module b/modules/page.module
index 61d15c9b8..31803526e 100644
--- a/modules/page.module
+++ b/modules/page.module
@@ -65,16 +65,23 @@ function page_link($type) {
function page_body($node) {
global $theme, $op;
- /*
- ** Make sure only authorized users can preview static (PHP)
- ** pages.
- */
- if ($op == t("Preview") && !user_access("adminster nodes")) {
- return;
- }
if ($node->format) {
+ /*
+ ** Make sure only authorized users can preview static (PHP)
+ ** pages.
+ */
+
+ if ($op == t("Preview")) {
+ if (user_access("adminster nodes")) {
+ $node->body = stripslashes($node->body); // see also page_form()
+ }
+ else {
+ return;
+ }
+ }
+
ob_start();
eval($node->body);
$output = ob_get_contents();