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:
parent
9c55ed0923
commit
44b95cb81d
7 changed files with 19 additions and 1 deletions
|
@ -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
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue