if ((!$gallery_valid) || (!is_readable($embed_path))) {
if ($report_error) {
- gallery_error($init_err_msg, NULL, TRUE);
+ gallery_error($init_err_msg);
}
return $ready;
}
* Retrieve all (active) themes from Gallery2
*/
function gallery_get_themes($all = FALSE) {
+ _gallery_init();
// List of themes
list($ret, $g2_themes) = GalleryCoreApi::fetchPluginStatus('theme', TRUE);
if ($ret) {
*/
function gallery_get_image_frames() {
_gallery_init();
+ // List of available image frames
list($ret, $imageframe) = GalleryCoreApi::newFactoryInstance('ImageFrameInterface_1_1');
if ($ret || !isset($imageframe)) {
return array('none' => t('None'));
* Bug report assistance (system info)
*/
-function _gallery_report($download = FALSE, &$report = array(), $cache = FALSE) {
+function _gallery_report($download = FALSE, $report = array(), $cache = FALSE) {
// provide download of the cached report
if ($download && ($content = cache_get('gallery_report_'. session_id()))) {
_gallery_report_download($content->data);