And just for the sake of posterity https://github.com/Zeelot/kohana-media/commit/31db18cde452b75fa8c60fcf7edcc5acc93e21ec