|
@@ -204,7 +204,7 @@ class SitesDB(object): |
|
|
search_config["exclusions_db"] = self._exclusions_db |
|
|
search_config["exclusions_db"] = self._exclusions_db |
|
|
|
|
|
|
|
|
if not sql: |
|
|
if not sql: |
|
|
sql = config.wiki.get("sql", {}) |
|
|
|
|
|
|
|
|
sql = config.wiki.get("sql", {}).copy() |
|
|
for key, value in sql.iteritems(): |
|
|
for key, value in sql.iteritems(): |
|
|
if isinstance(value, basestring) and "$1" in value: |
|
|
if isinstance(value, basestring) and "$1" in value: |
|
|
sql[key] = value.replace("$1", name) |
|
|
sql[key] = value.replace("$1", name) |
|
|