From 9c8752a2061e67c719125edb6e0d6717d1af8553 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 24 Jun 2015 23:01:21 +0200 Subject: 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 --- tests/utils/ReferenceLinkDB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/utils/ReferenceLinkDB.php') 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 /** * Writes data to the datastore */ - public function write($filename, $prefix, $suffix) + public function write($filename) { file_put_contents( $filename, - $prefix.base64_encode(gzdeflate(serialize($this->links))).$suffix + 'links))).' */ ?>' ); } -- cgit v1.2.3