NextGEN Gallery – Resource Manager fix

mgibbs189

{{gist file=”class.photocrati_resource_manager.php” lang=”php”}}
<?php

/* ================ Before ================ */

function __construct()
{
// Validate the request
$this->validate_request();
add_action(‘init’, array(&$this, ‘start_buffer’), -1);
add_action(‘wp_footer’, array(&$this, ‘print_marker’), -1);
}

/* ================ After ================ */

function __construct()
{
// Validate the request
$this->validate_request();

if ($this->valid_request) {
add_action(‘init’, array(&$this, ‘start_buffer’), -1);
add_action(‘wp_footer’, array(&$this, ‘print_marker’), -1);
}
}

{{/gist}}