namespacing: \Shaarli\Render\{PageBuilder,ThemeUtils}
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
51753e403f
commit
8c0f19c797
5 changed files with 19 additions and 10 deletions
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Shaarli\Render;
|
||||
|
||||
use ApplicationUtils;
|
||||
use Exception;
|
||||
use LinkDB;
|
||||
use RainTPL;
|
||||
use Shaarli\Config\ConfigManager;
|
||||
use Shaarli\Thumbnailer;
|
||||
|
||||
|
@ -37,7 +43,9 @@ class PageBuilder
|
|||
*/
|
||||
protected $token;
|
||||
|
||||
/** @var bool $isLoggedIn Whether the user is logged in **/
|
||||
/**
|
||||
* @var bool $isLoggedIn Whether the user is logged in
|
||||
*/
|
||||
protected $isLoggedIn = false;
|
||||
|
||||
/**
|
||||
|
@ -191,7 +199,7 @@ public function renderPage($page)
|
|||
* Render a 404 page (uses the template : tpl/404.tpl)
|
||||
* usage: $PAGE->render404('The link was deleted')
|
||||
*
|
||||
* @param string $message A messate to display what is not found
|
||||
* @param string $message A message to display what is not found
|
||||
*/
|
||||
public function render404($message = '')
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Shaarli;
|
||||
namespace Shaarli\Render;
|
||||
|
||||
/**
|
||||
* Class ThemeUtils
|
|
@ -39,6 +39,7 @@
|
|||
"Shaarli\\Exceptions\\": "application/exceptions",
|
||||
"Shaarli\\Feed\\": "application/feed",
|
||||
"Shaarli\\Http\\": "application/http",
|
||||
"Shaarli\\Render\\": "application/render",
|
||||
"Shaarli\\Security\\": "application/security"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,6 @@
|
|||
require_once 'application/LinkFilter.php';
|
||||
require_once 'application/LinkUtils.php';
|
||||
require_once 'application/NetscapeBookmarkUtils.php';
|
||||
require_once 'application/PageBuilder.php';
|
||||
require_once 'application/TimeZone.php';
|
||||
require_once 'application/Utils.php';
|
||||
require_once 'application/PluginManager.php';
|
||||
|
@ -78,9 +77,10 @@
|
|||
use \Shaarli\Feed\FeedBuilder;
|
||||
use \Shaarli\History;
|
||||
use \Shaarli\Languages;
|
||||
use \Shaarli\Render\PageBuilder;
|
||||
use \Shaarli\Render\ThemeUtils;
|
||||
use \Shaarli\Security\LoginManager;
|
||||
use \Shaarli\Security\SessionManager;
|
||||
use \Shaarli\ThemeUtils;
|
||||
use \Shaarli\Thumbnailer;
|
||||
|
||||
// Ensure the PHP version is supported
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Shaarli;
|
||||
namespace Shaarli\Render;
|
||||
|
||||
/**
|
||||
* Class ThemeUtilsTest
|
Loading…
Reference in a new issue