File: 0002-Fix-the-example-file-to-use-the-full-installed-path.patch

package info (click to toggle)
phpwebcounter 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 268 kB
  • sloc: php: 61; sh: 43; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 687 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
From: William Desportes <williamdes@wdes.fr>
Date: Fri, 2 May 2025 21:46:10 +0200
Subject: Fix the example file to use the full installed path

Origin: vendor
Forwarded: not-needed
---
 test/phpwebcounter_test.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/phpwebcounter_test.php b/test/phpwebcounter_test.php
index 54bf1d9..2b26d4a 100644
--- a/test/phpwebcounter_test.php
+++ b/test/phpwebcounter_test.php
@@ -11,7 +11,7 @@
 Test</big></big></big></big><br>
 <br>
 <big><big>Hits:</big></big><br>
-<?php require("/phpwebcounter/phpwebcounter.php"); ?><br>
+<?php require_once '/usr/share/phpwebcounter/phpwebcounter.php'; ?><br>
 </div>
 </body>
 </html>