- Removes debug backtrace

- Removes uncommented queue save
This commit is contained in:
Vlad
2016-05-02 09:23:37 -04:00
parent 6868a07ead
commit d18f0e50b5
3 changed files with 32 additions and 22 deletions

View File

@@ -37,10 +37,14 @@ class Links {
);
}
static function process($content, $links = false, $process_link_shortcodes = false) {
static function process($content,
$links = false,
$process_link_shortcodes = false,
$queue = false
) {
if($process_link_shortcodes) {
// process shortcodes with [url:*] format
$shortcodes = new Shortcodes();
$shortcodes = new Shortcodes($newsletter = false, $subscriber = false, $queue);
$content = $shortcodes->replace($content, $limit = array('link'));
}
$links = ($links) ? $links : self::extract($content);
@@ -66,7 +70,12 @@ class Links {
);
}
static function replaceSubscriberData($newsletter_id, $subscriber_id, $queue_id, $content) {
static function replaceSubscriberData(
$newsletter_id,
$subscriber_id,
$queue_id,
$content
) {
return str_replace(
self::DATA_TAG,
sprintf('%s-%s-%s', $newsletter_id, $subscriber_id, $queue_id),