Skip to content

Commit

Permalink
Item8655: Cheap cop-out for now. I will revert TinyMCEPlugin to non-j…
Browse files Browse the repository at this point in the history
…query version if ZonePlugin shenanigans prevent us shipping JQueryPlugin as a default plugin.

git-svn-id: http://svn.foswiki.org/trunk@6626 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Mar 3, 2010
1 parent db19702 commit 992f896
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
@@ -0,0 +1,51 @@
# See bottom of file for license and copyright information
package Foswiki::Configure::Checkers::Plugins::JQueryPlugin::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}{JQueryPlugin}{Enabled} ) {
if ( !$Foswiki::cfg{Plugins}{ZonePlugin}{Enabled} ) {
$warnings .= $this->ERROR(<<'HERE');
JQueryPlugin depends on ZonePlugin, which is not enabled.
HERE
}
}

return $warnings;
}

1;
__DATA__
#
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2010 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 JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/MANIFEST
Expand Up @@ -48,6 +48,7 @@ data/System/JQueryValidate.txt 0644
data/System/JQueryWikiWord.txt 0644
lib/CPAN/lib/CSS/Minifier.pm 0644
lib/CPAN/lib/JavaScript/Minifier.pm 0644
lib/Foswiki/Configure/Checkers/Plugins/JQueryPlugin/Enabled.pm 0644
lib/Foswiki/Form/Color.pm 0644
lib/Foswiki/Form/Rating.pm 0644
lib/Foswiki/Form/Textboxlist.pm 0644
Expand Down

0 comments on commit 992f896

Please sign in to comment.