I know, and I ain't trying to be a jerkass here, but there's been this weird mindset going around lately (not just on CBR but elsewhere too) of, like, "Whaaat, Rucka's putting Diana in an asylum? How dare he! The nerve!" and it's kinda...well, let's just call it "iffy."
If Diana got her arm broken or had an ear infection, she'd go to get it checked out somewhere and no one would consider it weird or shocking or whatever. Right now she's having a mind problem, so she's gonna get her mind checked out. What's so wrong or shameful about that? There shouldn't be any stigma about it.
And honestly, the less said about the Batman mythos' treatment of mental illness, the better. Don't wanna touch that with a twenty-feet stick.