WordPress.org

Forums

NextGEN Gallery
Minor constant definition fix (2 posts)

  1. alex.bradaric
    Member
    Posted 1 year ago #

    Hi,

    Just found a (most probably) typo in defining a constant. Here's the diff:

    diff --git a/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php b/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php
    index 6687f5f..4002507 100644
    --- a/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php
    +++ b/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_resource_manager.php
    @@ -140,7 +140,7 @@ class C_Photocrati_Resource_Manager
                // If W3TC is installed and activated, we can't output the
                // scripts and manipulate the buffer, so we can only provide a warning
                if (defined('W3TC') && defined('WP_DEBUG') && WP_DEBUG) {
    -               if (defined('DONOTCACHEPAGE')) define('DONOTCACHEPAGE', TRUE);
    +               if (!defined('DONOTCACHEPAGE')) define('DONOTCACHEPAGE', TRUE);
                    if (!did_action('wp_footer')) {
                        error_log("We're sorry, but your theme's page template didn't make a call to wp_footer(), which is required by NextGEN Gallery. Please add this call to your page templates.");
                    }

    Take care,
    Alex

    http://wordpress.org/plugins/nextgen-gallery/

  2. Benjamin
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic