[geeklog-cvs] geeklog: Fixed display for advanced editor on static pages (Bug ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu May 13 11:18:01 EDT 2010
changeset 7934:8dd92a2ea0fb
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8dd92a2ea0fb
user: Samuel Leathers <sam at theleathers.net>
date: Mon May 03 10:54:21 2010 -0400
description:
Fixed display for advanced editor on static pages (Bug #0001147)
diffstat:
public_html/admin/plugins/staticpages/index.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 85b1a6e95611 -r 8dd92a2ea0fb public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Thu May 13 16:40:32 2010 +0200
+++ b/public_html/admin/plugins/staticpages/index.php Mon May 03 10:54:21 2010 -0400
@@ -590,6 +590,9 @@
$A['commentcode'] = $_SP_CONF['comment_code'];
$A['sp_where'] = 1; // default new pages to "top of page"
$A['draft_flag'] = $_SP_CONF['draft_flag'];
+ if ($_USER['advanced_editor'] == 1) {
+ $A['postmode'] = 'adveditor';
+ }
} elseif (!empty($sp_id) && $mode == 'clone') {
$result = DB_query("SELECT *,UNIX_TIMESTAMP(modified) AS unixdate FROM {$_TABLES['staticpage']} WHERE sp_id = '$sp_id'" . COM_getPermSQL('AND', 0, 3));
if (DB_numRows($result) == 1) {
More information about the geeklog-cvs
mailing list