function notify($galleryId, $name, $filename, $description, $action, $user) { global $feature_user_watches; if ($feature_user_watches == 'y') { // Deal with mail notifications. include_once 'lib/notifications/notificationemaillib.php'; $foo = parse_url($_SERVER["REQUEST_URI"]); $machine = $this->httpPrefix() . dirname($foo["path"]); $galleryName = $this->getOne("select `name` from `tiki_file_galleries` where `galleryId`=?", array($galleryId)); sendFileGalleryEmailNotification('file_gallery_changed', $galleryId, $galleryName, $name, $filename, $description, $action, $user); } }
function notify($galleryId, $name, $filename, $description, $action, $user, $fileId = false) { global $prefs; if ($prefs['feature_user_watches'] == 'y') { // Deal with mail notifications. include_once 'lib/notifications/notificationemaillib.php'; $galleryName = $this->table('tiki_file_galleries')->fetchOne('name', array('galleryId' => $galleryId)); sendFileGalleryEmailNotification('file_gallery_changed', $galleryId, $galleryName, $name, $filename, $description, $action, $user, $fileId); } }