Is it...
if ($new) {
// Set default data for a new Album (title and parent_id)
$parentalbum = $this->getParent();
$title = str_replace(array('-','_','+','~'), ' ', $this->name);
if (!is_null($parentalbum)) {
$this->set('parentid', $parentalbum->getAlbumId());
$title = substr($title, strrpos($title, '/')+1);
}
// echo $this->id;
$this->set('title', $title);
$this->save();
}
Under...
// Constructor
function Album(&$gallery, $folder)
class-album.php??????
&
if ($new) {
$title = substr($this->name, 0, strrpos($this->name, '.'));
if (empty($title)) $title = $this->name;
$this->set('title', $title);
$this->save();
}
Under...
// Constructor
function Image(&$album, $filename)
class-image.php??