Skip to content

Commit

Permalink
Item2297: TinyMCEPlugin now depends on JQueryPlugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@6540 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Feb 26, 2010
1 parent 217dccf commit f73190f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# See bottom of file for license and copyright information
package Foswiki::Configure::Checkers::Plugins::TinyMCEPlugin::Enabled;
use warnings;
use strict;

use Foswiki::Configure::Checker;

use base 'Foswiki::Configure::Checker';

sub check {
my $this = shift;
my $warnings;

if ( $Foswiki::cfg{Plugins}{TinyMCEPlugin}{Enabled} ) {
if ( !$Foswiki::cfg{JQueryPlugin}{Enabled} ) {
$warnings .= $this->ERROR(<<'HERE');
TinyMCEPlugin depends on JQueryPlugin, which is not enabled.
HERE
}
}

return $warnings;
}

1;
__DATA__
#
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009 Foswiki Contributors. All Rights Reserved.
# Foswiki Contributors are listed in the AUTHORS file in the root
# of this distribution. NOTE: Please extend that file, not this notice.
#
# Additional copyrights apply to some or all of the code in this
# file as follows:
#
# Copyright (C) 2000-2006 TWiki Contributors. All Rights Reserved.
# TWiki Contributors are listed in the AUTHORS file in the root
# of this distribution. NOTE: Please extend that file, not this notice.
#
# This program 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. For
# more details read LICENSE in the root of this distribution.
#
# This program 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.
#
# As per the GPL, removal of this notice is prohibited.
1 change: 1 addition & 0 deletions TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ data/System/TinyMCEFrequentlyAskedQuestions.txt 0644
data/System/TinyMCEQuickHelp.txt 0644
!noci
lib/Foswiki/Plugins/TinyMCEPlugin.pm 0644
lib/Foswiki/Configure/Checkers/Plugins/TinyMCEPlugin/Enabled.pm 0644
pub/System/TinyMCEPlugin/anchor.gif 0644
pub/System/TinyMCEPlugin/foswiki.js 0644
pub/System/TinyMCEPlugin/foswiki_src.js 0644
Expand Down

0 comments on commit f73190f

Please sign in to comment.