1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-05 18:41:02 +00:00

Rename wallabag_core to wallabag

This commit is contained in:
Yassine Guedidi 2024-02-20 00:47:53 +01:00
parent 0b44170e83
commit 74a98aaae2
29 changed files with 185 additions and 185 deletions

View file

@ -525,7 +525,7 @@ class EntryRestController extends WallabagRestController
$urls = json_decode($request->query->get('urls', []));
$limit = $this->getParameter('wallabag_core.api_limit_mass_actions');
$limit = $this->getParameter('wallabag.api_limit_mass_actions');
if (\count($urls) > $limit) {
throw new HttpException(400, 'API limit reached');
@ -1044,7 +1044,7 @@ class EntryRestController extends WallabagRestController
}
// if refreshing entry failed, don't save it
if ($this->getParameter('wallabag_core.fetching_error_message') === $entry->getContent()) {
if ($this->getParameter('wallabag.fetching_error_message') === $entry->getContent()) {
return new JsonResponse([], 304);
}

View file

@ -61,7 +61,7 @@ class WallabagRestController extends AbstractFOSRestController
*/
public function getVersionAction()
{
$version = $this->getParameter('wallabag_core.version');
$version = $this->getParameter('wallabag.version');
$json = $this->serializer->serialize($version, 'json');
return (new JsonResponse())->setJson($json);
@ -85,7 +85,7 @@ class WallabagRestController extends AbstractFOSRestController
public function getInfoAction(Config $craueConfig)
{
$info = new ApplicationInfo(
$this->getParameter('wallabag_core.version'),
$this->getParameter('wallabag.version'),
$this->getParameter('fosuser_registration') && $craueConfig->get('api_user_registration'),
);