fix find_all => find
This commit is contained in:
parent
684f48979a
commit
eef928a742
|
@ -119,11 +119,11 @@ echo " };\n";
|
||||||
} // end if initialmodeislive
|
} // end if initialmodeislive
|
||||||
|
|
||||||
echo "var Storage = [];\n";
|
echo "var Storage = [];\n";
|
||||||
foreach ( Storage::find_all() as $Storage ) {
|
foreach ( Storage::find() as $Storage ) {
|
||||||
echo 'Storage[' . $Storage->Id() . '] = ' . json_encode($Storage). ";\n";
|
echo 'Storage[' . $Storage->Id() . '] = ' . json_encode($Storage). ";\n";
|
||||||
}
|
}
|
||||||
echo "\nvar Servers = [];\n";
|
echo "\nvar Servers = [];\n";
|
||||||
foreach ( Server::find_all() as $Server ) {
|
foreach ( Server::find() as $Server ) {
|
||||||
echo 'Servers[' . $Server->Id() . '] = ' . json_encode($Server). ";\n";
|
echo 'Servers[' . $Server->Id() . '] = ' . json_encode($Server). ";\n";
|
||||||
}
|
}
|
||||||
echo '
|
echo '
|
||||||
|
|
Loading…
Reference in New Issue