[geeklog-cvs] geeklog: Removed unused 'editor' parameter

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jan 9 11:08:06 EST 2010


changeset 7591:41c402aca5d0
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/41c402aca5d0
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 09 15:38:19 2010 +0100
description:
Removed unused 'editor' parameter

diffstat:

 public_html/admin/story.php |  17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diffs (48 lines):

diff -r 9f4725b651af -r 41c402aca5d0 public_html/admin/story.php
--- a/public_html/admin/story.php	Sat Jan 09 15:34:41 2010 +0100
+++ b/public_html/admin/story.php	Sat Jan 09 15:38:19 2010 +0100
@@ -8,7 +8,7 @@
 // |                                                                           |
 // | Geeklog story administration page.                                        |
 // +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2009 by the following authors:                         |
+// | Copyright (C) 2000-2010 by the following authors:                         |
 // |                                                                           |
 // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
 // |          Mark Limburg      - mlimburg AT users DOT sourceforge DOT net    |
@@ -188,7 +188,7 @@
     $defsort_arr = array('field' => 'unixdate', 'direction' => 'desc');
 
     $menu_arr = array (
-        array('url' => $_CONF['site_admin_url'] . '/story.php?mode=edit&editor=std',
+        array('url' => $_CONF['site_admin_url'] . '/story.php?mode=edit',
               'text' => $LANG_ADMIN['create_new'])
     );
 
@@ -854,12 +854,7 @@
     }
 } else if (($mode == $LANG_ADMIN['preview']) && !empty ($LANG_ADMIN['preview'])) {
     $display .= COM_siteHeader('menu', $LANG24[5]);
-    $editor = '';
-    if (!empty ($_GET['editor'])) {
-        $editor = COM_applyFilter ($_GET['editor']);
-    }
-    $display .= storyeditor (COM_applyFilter ($_POST['sid']), 'preview', '', '',
-                             $editor);
+    $display .= storyeditor(COM_applyFilter($_POST['sid']), 'preview', '', '');
     $display .= COM_siteFooter();
     COM_output($display);
 } elseif (($mode == 'edit') || ($mode == 'clone')) {
@@ -872,11 +867,7 @@
     if (isset ($_GET['topic'])) {
         $topic = COM_applyFilter ($_GET['topic']);
     }
-    $editor = '';
-    if (isset ($_GET['editor'])) {
-        $editor = COM_applyFilter ($_GET['editor']);
-    }
-    $display .= storyeditor ($sid, $mode, '', $topic, $editor);
+    $display .= storyeditor($sid, $mode, '', $topic);
     $display .= COM_siteFooter();
     COM_output($display);
 } else if ($mode == 'editsubmission') {



More information about the geeklog-cvs mailing list