Wikimedia España
/
inscripciones
/
inscribirse
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ba8f9
)
Definir la variable $D al inicio
author
Platonides
<platonides@gmail.com>
Mon, 21 May 2018 21:20:47 +0000
(23:20 +0200)
committer
Platonides
<platonides@gmail.com>
Mon, 21 May 2018 21:28:21 +0000
(23:28 +0200)
html/wiki.php
patch
|
blob
|
blame
|
history
diff --git
a/html/wiki.php
b/html/wiki.php
index 1487b3769394a5dff1a9a22c290e47deb01fbf1c..9681e4c30534b025a4a67ac056d871643152b47c 100644
(file)
--- a/
html/wiki.php
+++ b/
html/wiki.php
@@
-1,6
+1,7
@@
<?php
function parsecfg ($F) { # Se admiten matrices numéricas (guardadas como m = v1:v2...) o asociativas (guardadas como m.c1 = v1\\m.c2 = v2...)
+ $D = array ();
foreach (file (dirname (__DIR__) . "/config/" . $F, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $L) {
list ($C, $V) = preg_split ("/\s*=\s*/", $L, 2);
if (strpos ($C, ".") !== FALSE) {