/** * Deprecated since 1.8 * Use CGroupHelper::allowPhotoWall instead. */ function cAllowPhotoWall($groupId) { return CGroupHelper::allowPhotoWall($groupId); }
public function isWallsAllowed($photoId) { $photo = JTable::getInstance('Photo', 'CTable'); $photo->load($photoId); $album = JTable::getInstance('Album', 'CTable'); $album->load($photo->albumid); if (CGroupHelper::allowPhotoWall($album->groupid)) { return true; } return false; }
public function isWallsAllowed($photoId) { CFactory::load('helpers', 'group'); CFactory::load('models', 'photos'); $photo =& JTable::getInstance('Photo', 'CTable'); $photo->load($photoId); $album =& JTable::getInstance('Album', 'CTable'); $album->load($photo->albumid); if (CGroupHelper::allowPhotoWall($album->groupid)) { return true; } return false; }