[cvs] commit: wicked/lib/Driver sql.php
Marko Djukic
mdjukic at horde.org
Sat Jun 25 19:03:51 PDT 2005
mdjukic 2005-06-25 19:03:51 PDT
Modified files:
lib/Driver sql.php
Log:
Renaming files was partially broken, it was complaining about already existing new page name. Problem is that updateText() checks for page existing but that is looking at a cached array hence it was always returning false and always trying to create a new page.
I've added the $no_cache option to the getPages() to bypass the caching when needed. It seemed messy passing the no caching call through updateText since it is used other situations when caching would be needed. So I have added a call to getPages() without caching just before the updateText() call to make that the new page array is loaded.
Revision Changes Path
1.60 +6 -3 wicked/lib/Driver/sql.php
Chora Links:
http://cvs.horde.org/diff.php/wicked/lib/Driver/sql.php?r1=1.59&r2=1.60&ty=u
More information about the cvs
mailing list