1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

added reload function

This commit is contained in:
Thomas Citharel 2014-12-13 22:56:30 +01:00
parent 9c55ed0923
commit 44b95cb81d
7 changed files with 19 additions and 1 deletions

View file

@ -303,6 +303,15 @@ class Poche
$this->messages->add('s', _('The tag has been successfully deleted'));
Tools::redirect();
break;
case 'reload_article' :
Tools::logm('reload article');
$id = $_GET['id'];
$entry = $this->store->retrieveOneById($id, $this->user->getId());
Tools::logm('reload url ' . $entry['url']);
$url = new Url(base64_encode($entry['url']));
$this->action('add', $url);
break;
default:
break;
}
@ -812,4 +821,4 @@ class Poche
}
}
}

View file

@ -56,6 +56,7 @@
@define ('SHOW_PRINTLINK', '1');
// display or not percent of read in article view. Affects only default theme.
@define ('SHOW_READPERCENT', '1');
@define ('RELOAD_ARTICLE', TRUE);
@define ('ABS_PATH', 'assets/');
@define ('DEFAULT_THEME', 'baggy');