Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. slash@lithium:~/src/rehash-ncommander$ git diff
  2. diff --git a/Slash/DB/MySQL/MySQL.pm b/Slash/DB/MySQL/MySQL.pm
  3. index 1e6fd14..eb46836 100644
  4. --- a/Slash/DB/MySQL/MySQL.pm
  5. +++ b/Slash/DB/MySQL/MySQL.pm
  6. @@ -2801,7 +2801,7 @@ sub checkStoryViewable {
  7.  
  8. return 0 if $self->sqlCount(
  9. "story_param",
  10. - "stoid = '$stoid' AND name='neverdisplay' AND value > 0");
  11. + "stoid = '$stoid' AND name='neverdisplay'");
  12.  
  13. my @nexuses;
  14. if ($start_tid) {
  15. @@ -6002,7 +6002,7 @@ sub getStoryByTime {
  16. 'stories.stoid, sid, title, stories.tid',
  17. "story_text, story_topics_rendered,
  18. stories LEFT JOIN story_param ON (stories.stoid=story_param.stoid
  19. - AND story_param.name='neverdisplay' AND story_param.value != 0)",
  20. + AND story_param.name='neverdisplay')",
  21. "stories.stoid = story_text.stoid
  22. AND stories.stoid = story_topics_rendered.stoid
  23. AND '$time' > DATE_SUB($now, INTERVAL $bytime_delay DAY)
  24. diff --git a/themes/default/htdocs/index.pl b/themes/default/htdocs/index.pl
  25. index 173e57f..965d082 100755
  26. --- a/themes/default/htdocs/index.pl
  27. +++ b/themes/default/htdocs/index.pl
  28. @@ -149,7 +149,7 @@ my $start_time = Time::HiRes::time;
  29. if ($stoid_in_str) {
  30. $nd_hr = $gse_db->sqlSelectAllKeyValue('stoid, value',
  31. 'story_param',
  32. - qq{stoid IN ($stoid_in_str) AND name='neverdisplay' AND value != 0});
  33. + qq{stoid IN ($stoid_in_str) AND name='neverdisplay'});
  34. if (keys %$nd_hr) {
  35. for my $story_hr (@$stories) {
  36. $story_hr->{neverdisplay} = 1 if $nd_hr->{ $story_hr->{stoid} };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement