projects
/
web.Reddit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f836f3
)
Pman/Reddit/DataObjects/Reddit_livefeed.php
author
Alan Knowles
<alan@roojs.com>
Tue, 16 Dec 2014 10:12:01 +0000
(18:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 16 Dec 2014 10:12:01 +0000
(18:12 +0800)
Pman/Reddit/DataObjects/Reddit_livefeed.php
patch
|
blob
|
history
diff --git
a/Pman/Reddit/DataObjects/Reddit_livefeed.php
b/Pman/Reddit/DataObjects/Reddit_livefeed.php
index
73aa2ba
..
322c492
100644
(file)
--- a/
Pman/Reddit/DataObjects/Reddit_livefeed.php
+++ b/
Pman/Reddit/DataObjects/Reddit_livefeed.php
@@
-131,6
+131,7
@@
data =>
$x->insert();
}
}
+ /*
function fetchEmbed()
{
@@
-149,10
+150,11
@@
data =>
$url = http://redit.......
$cmd = "/usr/bin/wkhtmltopdf $url $file";
}
- */
+
$r = json_decode($this->embeds);
foreach($r as $i=>$em) {
+
$file = '/home/reddit/' . date('Y/m/d',strtotime($this->created_dt . " - 8 HOURS")) . "/" . $this->uid . '.' . $i . ".pdf";
if(file_exists($file)){
echo "file exists already.";
@@
-176,6
+178,6
@@
data =>
}
-
+ */
}