mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-05 14:40:44 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user