Skip to content

Commit

Permalink
fix: clean up directories and create the needed object
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica González <[email protected]>
  • Loading branch information
MissAllSunday committed Oct 24, 2020
1 parent 18d045d commit 5793a21
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions Sources/cache/CacheAPI.php → Sources/Cache/CacheAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @version 2.1 RC3
*/

namespace SMF\Cache;

if (!defined('SMF'))
die('No direct access...');

Expand All @@ -19,6 +21,7 @@
*/
interface cache_api_interface
{
const APIS_FOLDER = 'APIs';
/**
* Checks whether we can use the cache method performed by this API.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* @version 2.1 RC2
*/

namespace SMF\Cache;

if (!defined('SMF'))
die('No direct access...');

Expand Down
2 changes: 2 additions & 0 deletions Sources/ManageServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
* @version 2.1 RC3
*/

use SMF\Cache\CacheApi;

if (!defined('SMF'))
die('No direct access...');

Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
'ReCaptcha\\' => 'ReCaptcha/',
'MatthiasMullie\\Minify\\' => 'minify/src/',
'MatthiasMullie\\PathConverter\\' => 'minify/path-converter/src/',
'SMF\\Cache' => 'Cache/',
);

// Do any third-party scripts want in on the fun?
Expand Down
7 changes: 0 additions & 7 deletions other/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,6 @@
*/
$cacheAPIdir = $sourcedir . '/cache';

/**
* Path to the cache implementations.
*
* @var string
*/
$cacheAPIImplementationdir = $cacheAPIdir . '/implementations';

# Make sure the paths are correct... at least try to fix them.
if (!is_dir(realpath($boarddir)) && file_exists(dirname(__FILE__) . '/agreement.txt'))
$boarddir = dirname(__FILE__);
Expand Down

0 comments on commit 5793a21

Please sign in to comment.