OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10d66e
)
Model::SlashDB: createStory() returns (sid, stoid) when array context
author
hylom
<hylom@users.sourceforge.jp>
Tue, 28 Mar 2017 15:54:21 +0000
(
00:54
+0900)
committer
hylom
<hylom@users.sourceforge.jp>
Tue, 28 Mar 2017 15:54:21 +0000
(
00:54
+0900)
src/newslash_web/lib/Newslash/Model/SlashDB.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/SlashDB.pm
b/src/newslash_web/lib/Newslash/Model/SlashDB.pm
index
f434790
..
c098546
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/SlashDB.pm
+++ b/
src/newslash_web/lib/Newslash/Model/SlashDB.pm
@@
-8331,7
+8331,8
@@
sub createStory {
$firehose->createItemFromStory($stoid);
}
- return $story->{sid};
+ #return $story->{sid};
+ return wantarray ? ($story->{sid}, $stoid) : $story->{sid};
}
sub getUrlFromSid {