Code Duplication    Length = 12-12 lines in 2 locations

class.SecureLoginRequiredPage.php 1 location

@@ 12-23 (lines=12) @@
9
    protected $plugins;
10
    protected $plugin_count;
11
12
    function __construct($title)
13
    {
14
        parent::__construct($title, true);
15
        $this->secure_root = $this->getSecureRoot();
16
        $this->addSecureCss();
17
        $this->addSecureScript();
18
        $this->add_login_form();
19
        $this->body_tags='data-login-url="'.$this->secure_root.'api/v1/login"';
20
        $this->plugins = $this->loadAndGetPlugins();
21
        $this->plugin_count = count($this->plugins);
22
        $this->add_links();
23
    }
24
25
    function add_links()
26
    {

class.SecurePage.php 1 location

@@ 80-91 (lines=12) @@
77
    protected $plugins;
78
    protected $plugin_count;
79
80
    function __construct($title)
81
    {
82
        parent::__construct($title, true);
83
        $this->secure_root = $this->getSecureRoot();
84
        $this->addSecureCss();
85
        $this->addSecureScript();
86
        $this->add_login_form();
87
        $this->body_tags='data-login-url="'.$this->secure_root.'api/v1/login"';
88
        $this->plugins = $this->loadAndGetPlugins();
89
        $this->plugin_count = count($this->plugins);
90
        $this->add_links();
91
    }
92
93
    function add_links()
94
    {