~chromium-team/chromium-browser/trusty-beta

« back to all changes in this revision

Viewing changes to debian/tests/data/HTML5test/backend/controllers/saved.php

  • Committer: Olivier Tilloy
  • Date: 2017-10-23 16:46:53 UTC
  • mfrom: (1172.1.38 trusty-stable)
  • Revision ID: olivier.tilloy@canonical.com-20171023164653-zmpfzblxxnkj0jhj
Merge back changes from stable branch:
  * debian/control: bump Standards-Version to 4.1.1
  * debian/patches/set-rpath-on-chromium-executables.patch: updated
  * debian/tests/*:
    - removed stale autopkgtests
    - added new autopkgtests based on chromium's new headless mode
  * debian/source/include-binaries: updated to reflect new binary data in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
        include('../config.php');
 
4
        include('../libraries/database.php');
 
5
        include('../libraries/template.php');
 
6
        include('../models/results.php');
 
7
 
 
8
        $tpl = new Template('../templates/saved.html');
 
9
        $tpl->set('release', intval($GLOBALS['configuration']['release']));
 
10
 
 
11
        if (isset($_REQUEST['id'])) {
 
12
 
 
13
                if ($row = Results::getByUniqueId($_REQUEST['id'])) {
 
14
                        $tpl->set('one', json_encode($row));
 
15
                        $tpl->set('legacy', intval($row->release) != intval($GLOBALS['configuration']['release']));
 
16
                        $tpl->set('release', intval($row->release));
 
17
                }
 
18
        }
 
19
 
 
20
        echo $tpl->fetch();