File: 0001-Adapt-examples-for-installation-in-usr-share-doc.patch

package info (click to toggle)
php-tijsverkoyen-css-to-inline-styles 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: php: 1,105; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Wed, 13 Nov 2019 18:26:38 -1000
Subject: Adapt examples for installation in usr/share/doc

Forwarded: not-needed
---
 example/index.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/example/index.php b/example/index.php
index 0b58668..1785098 100644
--- a/example/index.php
+++ b/example/index.php
@@ -1,14 +1,14 @@
 <?php
 
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once '/usr/share/php/TijsVerkoyen/CssToInlineStyles/autoload.php';
 
 use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
 
 // create instance
 $cssToInlineStyles = new CssToInlineStyles();
 
-$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');
-$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');
+$html = file_get_contents(__DIR__ . '/sumo/index.htm');
+$css = file_get_contents(__DIR__ . '/sumo/style.css');
 
 // output
 echo $cssToInlineStyles->convert(