summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-12 19:12:18 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-05-12 19:12:18 +0200
commit5fd43a240ffb8343f867386985e1cb2377f6df3c (patch)
tree6babe5b62e295030b7a9fd2e44fb04bdbcce984c
parent3be2ad8a89a8b0626c38c0b9461a2e07286aa228 (diff)
also use occ to test for private api usage
-rw-r--r--.travis.yml1
-rw-r--r--controller/pagecontroller.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index abe8fd296..00605e0d2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -45,6 +45,7 @@ before_script:
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable news
+ - ./occ app:check-code new
- ./occ background:cron # enable default cron
- php -S localhost:8080 &
- cd apps/news
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php
index 66471419a..09257ee3b 100644
--- a/controller/pagecontroller.php
+++ b/controller/pagecontroller.php
@@ -72,7 +72,8 @@ class PageController extends Controller {
public function index() {
$status = $this->statusService->getStatus();
$response = new TemplateResponse($this->appName, 'index', [
- 'cronWarning' => $status['warnings']['improperlyConfiguredCron']
+ 'cronWarning' => $status['warnings']['improperlyConfiguredCron'],
+ 'url_generator' => $this->urlGenerator
]);
$csp = new ContentSecurityPolicy();