forked from GNUsocial/gnu-social
durrrr s/textValue/textContent/
This commit is contained in:
parent
e1136bacae
commit
d5f5f76947
@ -208,10 +208,10 @@ class PollPlugin extends MicroAppPlugin
|
|||||||
|
|
||||||
$data = $pollElements->item(0);
|
$data = $pollElements->item(0);
|
||||||
foreach ($data->getElementsByTagNameNS(self::POLL_OBJECT, 'question') as $node) {
|
foreach ($data->getElementsByTagNameNS(self::POLL_OBJECT, 'question') as $node) {
|
||||||
$question = $node->textValue; // ?
|
$question = $node->textContent;
|
||||||
}
|
}
|
||||||
foreach ($data->getElementsByTagNameNS(self::POLL_OBJECT, 'option') as $node) {
|
foreach ($data->getElementsByTagNameNS(self::POLL_OBJECT, 'option') as $node) {
|
||||||
$opts[] = $node->textValue;
|
$opts[] = $node->textContent;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$notice = Poll::saveNew($profile, $question, $opts, $options);
|
$notice = Poll::saveNew($profile, $question, $opts, $options);
|
||||||
|
Loading…
Reference in New Issue
Block a user