mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16955] Add stubs for cache classes and clean up
PHPBB3-16955
This commit is contained in:
12
phpBB/phpbb/cache/driver/file.php
vendored
12
phpBB/phpbb/cache/driver/file.php
vendored
@@ -331,17 +331,13 @@ class file extends \phpbb\cache\driver\base
|
||||
}
|
||||
|
||||
/**
|
||||
* Read cached data from a specified file
|
||||
*
|
||||
* @access private
|
||||
* @param string $filename Filename to write
|
||||
* @return mixed False if an error was encountered, otherwise the data type of the cached data
|
||||
*/
|
||||
function _read($filename)
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function _read(string $var)
|
||||
{
|
||||
global $phpEx;
|
||||
|
||||
$filename = $this->clean_varname($filename);
|
||||
$filename = $this->clean_varname($var);
|
||||
$file = "{$this->cache_dir}$filename.$phpEx";
|
||||
|
||||
$type = substr($filename, 0, strpos($filename, '_'));
|
||||
|
Reference in New Issue
Block a user