What was used to detect light before the invention of photodiodes/phototransistors?
Photoresistors were the predecessors of photodiodes.  



Instead of acting as current source they were light dependent resistors (LDRs). Their main disadvantage is that they react very slowly to light changes.