Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 817)
+++ trunk/CHANGELOG	(revision 818)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 ------------------------------------- 2.7.0 -------------------------------------
+07-Apr-2008 Christian Sommer
+!	modified FCKEditor WB-Link Plugin to work also with WB versions below 2.7
 07-Apr-2008 Matthias Gallas
 #	fixed error in german laguage file
 07-Apr-2008 Christian Sommer
Index: trunk/wb/modules/fckeditor/fckeditor/editor/plugins/WBModules/fck_wbmodules.php
===================================================================
--- trunk/wb/modules/fckeditor/fckeditor/editor/plugins/WBModules/fck_wbmodules.php	(revision 817)
+++ trunk/wb/modules/fckeditor/fckeditor/editor/plugins/WBModules/fck_wbmodules.php	(revision 818)
@@ -1,5 +1,28 @@
 <?php
 
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2008, Ryan Djurovich
+
+ Website Baker is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ Website Baker is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
 // Include the config file
 require('../../../../../../config.php');
 
@@ -16,8 +39,8 @@
 function gen_page_list($parent) {
 	global $template, $database, $admin;
 	$get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent'");
-	while($page = $get_pages->fetchRow()) {
-		if(!$admin->page_is_visible($page))
+	while($page = $get_pages->fetchRow()) {
+		if(!$admin->page_is_visible($page))
 			continue;
 		$title = stripslashes($page['menu_title']);
 		// Add leading -'s so we can tell what level a page is at
@@ -49,8 +72,9 @@
 $get_pages = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '0'");
 if($get_pages->numRows() > 0) {
 	// Loop through pages
-	while($page = $get_pages->fetchRow()) {
-		if(!$admin->page_is_visible($page))
+	while($page = $get_pages->fetchRow()) {
+		// method page_is_visible was introduced with WB 2.7
+		if(method_exists($admin, 'page_is_visible') && !$admin->page_is_visible($page))
 			continue;
 		$title = stripslashes($page['menu_title']);
 		$template->set_var('TITLE', $title);

Property changes on: trunk/wb/modules/fckeditor/fckeditor/editor/plugins/WBModules/fck_wbmodules.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
