Skip to content

Instantly share code, notes, and snippets.

@Mark-H
Created March 4, 2014 10:39
Show Gist options
  • Save Mark-H/9344076 to your computer and use it in GitHub Desktop.
Save Mark-H/9344076 to your computer and use it in GitHub Desktop.
Fix Gallery update to 1.6
<?php
$modelPath = $modx->getOption('gallery.core_path',null,$modx->getOption('core_path').'components/gallery/').'model/';
$modx->addPackage('gallery',$modelPath);
$manager = $modx->getManager();
$manager->addField('galAlbum', 'year');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment