mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
friend acceptance sets up lots of important stuff, so we
need to be absolutely bulletproof when (not if) things go wrong.
This commit is contained in:
parent
1b35018992
commit
036964de4d
2 changed files with 28 additions and 9 deletions
4
boot.php
4
boot.php
|
@ -248,7 +248,9 @@ function check_config(&$a) {
|
|||
// $s is the string requiring macro substitution.
|
||||
// $r is an array of key value pairs (search => replace)
|
||||
// returns substituted string.
|
||||
|
||||
// WARNING: this is pretty basic, and doesn't properly handle search strings that are substrings of each other.
|
||||
// For instance if 'test' => "foo" and 'testing' => "bar", testing could become either bar or fooing,
|
||||
// depending on the order in which they were declared in the array.
|
||||
|
||||
if(! function_exists('replace_macros')) {
|
||||
function replace_macros($s,$r) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue