aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-06-24 23:01:21 +0200
committerVirtualTam <virtualtam@flibidi.net>2015-06-24 23:26:52 +0200
commit9c8752a2061e67c719125edb6e0d6717d1af8553 (patch)
treed7f05ff1ce871105bb44625baeacc8e8b2bfec2b /tests/utils
parent64bc92e3ac8f5e66d2bc14206ede31e6679d8c13 (diff)
downloadShaarli-9c8752a2061e67c719125edb6e0d6717d1af8553.tar.gz
Shaarli-9c8752a2061e67c719125edb6e0d6717d1af8553.tar.zst
Shaarli-9c8752a2061e67c719125edb6e0d6717d1af8553.zip
LinkDB: do not access global variables
Relates to #218 Removes "hidden" access to the following variables: - $GLOBALS['config']['datastore'] - PHPPREFIX - PHPSUFFIX Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/ReferenceLinkDB.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php
index 2cb05bae..59ba671f 100644
--- a/tests/utils/ReferenceLinkDB.php
+++ b/tests/utils/ReferenceLinkDB.php
@@ -93,11 +93,11 @@ class ReferenceLinkDB
93 /** 93 /**
94 * Writes data to the datastore 94 * Writes data to the datastore
95 */ 95 */
96 public function write($filename, $prefix, $suffix) 96 public function write($filename)
97 { 97 {
98 file_put_contents( 98 file_put_contents(
99 $filename, 99 $filename,
100 $prefix.base64_encode(gzdeflate(serialize($this->links))).$suffix 100 '<?php /* '.base64_encode(gzdeflate(serialize($this->links))).' */ ?>'
101 ); 101 );
102 } 102 }
103 103