From: <var...@us...> - 2014-10-15 12:19:34
|
Revision: 9263 http://sourceforge.net/p/phpwiki/code/9263 Author: vargenau Date: 2014-10-15 12:19:31 +0000 (Wed, 15 Oct 2014) Log Message: ----------- Regenerate toolbar cache when a new image was uploaded Modified Paths: -------------- trunk/lib/EditToolbar.php Modified: trunk/lib/EditToolbar.php =================================================================== --- trunk/lib/EditToolbar.php 2014-10-15 09:10:49 UTC (rev 9262) +++ trunk/lib/EditToolbar.php 2014-10-15 12:19:31 UTC (rev 9263) @@ -93,6 +93,9 @@ if (TOOLBAR_TEMPLATE_PULLDOWN) { $key .= "+templates_" . $dbi->getTimestamp(); } + if (TOOLBAR_IMAGE_PULLDOWN) { + $key .= "+images_" . filemtime(getUploadFilePath()); + } $id = $cache->generateId($key); $content = $cache->get($id, 'toolbarcache'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |