Passed
Push — development ( f9d3d6...da8715 )
by Spuds
01:09 queued 25s
created

Offline   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A action_offline() 0 7 1
A action_index() 0 4 1
1
<?php
2
3
/**
4
 *
5
 * @package   ElkArte Forum
6
 * @copyright ElkArte Forum contributors
7
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
8
 *
9
 * @version 2.0 dev
10
 *
11
 */
12
13
namespace ElkArte\Controller;
14
15
use ElkArte\AbstractController;
16
17
class Offline extends AbstractController
18
{
19
	/**
20
	 * Default action handler: just Offline.
21
	 */
22
	public function action_index()
23
	{
24
		// I need the internet!
25
		$this->action_offline();
26
	}
27
28
	public function action_offline()
29
	{
30
		// Load the template
31
		theme()->getTemplates()->load('Offline');
32
		theme()->getTemplates()->loadSubTemplate('offline');
33
34
		obExit(false, false);
35
	}
36
}