Quote:
Originally Posted by y2ksw
I thought about it, but is impossible, because an image may be associated with more sources. Since it is unable to tell which is the right one, an undo option may do more harm than good. With a good backup history (I have 6 months) you never get into trouble. REPLACE INTO solves so many problems much better than any other undo procedure may do. 
|
somehow i see it is possible since you are going to return the original urls and not touching the files.
think of it like this:
thread have the text: blah blah image1.jpg
the undo column is storing this: image1.jpg=http://blah.com/path/to/image.jpg
so when the undo happen your script just replaces the local file urls to the original url
thats it
keep up the good work:up: