Follow-up Comment #5, sr #110593 (project administration): The previous code for local site specific content was:
2006-11-28 31) # This function permit including site specific content with ease 2009-01-15 32) function utils_get_content_filename ($file) 2006-11-28 33) { 2006-11-28 34) if (is_file($GLOBALS['sys_incdir'].'/'.$file.'.'.$GLOBALS['locale'])) 2009-01-15 35) // there is localized version of the file : 2009-01-15 36) return $GLOBALS['sys_incdir'].'/'.$file.'.'.$GLOBALS['locale']; 2006-11-28 37) elseif (is_file($GLOBALS['sys_incdir'].'/'.$file.'.txt')) 2009-01-15 38) return $GLOBALS['sys_incdir'].'/'.$file.'.txt'; 2006-11-28 39) else 2009-01-15 40) return null; 2009-01-15 41) } This code was changed with the following commit. https://git.savannah.gnu.org/cgit/administration/savane.git/commit/frontend/php/include/utils.php?id=b81ee8df8f135fb63c0f7284a37db5609fc4fccb The current code is this. 2009-01-15 34) function utils_get_content_filename ($file) 2006-11-28 35) { 2017-06-19 36) if (is_file($GLOBALS['sys_incdir'].'/php/'.$file.'.php')) 2017-06-19 37) return $GLOBALS['sys_incdir'].'/php/'.$file.'.php'; 2017-07-16 38) if (is_file($GLOBALS['sys_incdir'].'/php/'.$file.'.txt')) 2017-06-19 39) return $GLOBALS['sys_incdir'].'/php/'.$file.'.txt'; 2017-06-19 40) # Fallback to legacy location. 2019-05-20 41) if (isset ($GLOBALS['locale'])) 2019-05-20 42) { 2019-05-20 43) if (is_file($GLOBALS['sys_incdir'].'/'.$file.'.'.$GLOBALS['locale'])) 2019-05-20 44) # There is a localized version of the file: 2019-05-20 45) return $GLOBALS['sys_incdir'].'/'.$file.'.'.$GLOBALS['locale']; 2019-05-20 46) } 2017-07-16 47) if (is_file($GLOBALS['sys_incdir'].'/'.$file.'.txt')) 2009-01-15 48) return $GLOBALS['sys_incdir'].'/'.$file.'.txt'; 2017-07-16 49) return null; 2009-01-15 50) } So... It looks like the path to a local page_footer.txt has been changed to now require it in a ./php/ subdirectory. And presently that is a symlink. lrwxrwxrwx 1 root staff 51 Jul 18 2017 /etc/savane/content/gnu-content/php -> /var/www/savane/frontend/site-specific/gnu-content/ lrwxrwxrwx 1 root root 20 Feb 1 2017 /var/www/savane -> /opt/savannah/savane And that is all that I know. The question now becomes if this is okay or if further modifications need to be made to it. The previous local content override could be restored. But it looks to me that in 2017 this was changed to remove that separate area and to converge into the main code area. _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/support/?110593> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/