Revert "Change the exif module to respond to the gallery_ready event and check to see if gettext is installed. The 3rd party library used in the exif module expects gettext to be available. Rather than doing all the time use the gallery ready event to only do it when it might be needed. Fixes ticket #672"

This reverts commit 33690a32bc.
This commit is contained in:
Tim Almdal
2009-09-22 06:56:28 -07:00
parent 22296907b7
commit bf93473de5
-8
View File
@@ -18,14 +18,6 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class exif_event_Core {
static function gallery_ready() {
if (!function_exists("gettext")) {
function gettext($message) {
return (string) t($message);
}
}
}
static function item_created($item) {
if (!$item->is_album()) {
exif::extract($item);