Skip to content

Commit

Permalink
Issue #665 Remove SERVICE_LOGO old constant and related code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita authored and osma committed Jan 11, 2018
1 parent 7fdcb18 commit 17456a2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions config.inc.dist
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ define ("LOG_FILE_NAME", NULL);
# customize the service name
define("SERVICE_NAME", "Skosmos");

// customize the service logo by pointing to your logo here.
define("SERVICE_LOGO", "./resource/pics/logo.png");

// customize the css by adding your own stylesheet
define("CUSTOM_CSS", "resource/css/stylesheet.css");

Expand Down
4 changes: 0 additions & 4 deletions controller/WebController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public function __construct($model)
$this->twig->addGlobal("BaseHref", $this->getBaseHref());
// setting the service name string from the config.inc
$this->twig->addGlobal("ServiceName", $this->model->getConfig()->getServiceName());
// setting the service logo location from the config.inc
if ($this->model->getConfig()->getServiceLogo() !== null) {
$this->twig->addGlobal("ServiceLogo", $this->model->getConfig()->getServiceLogo());
}

// setting the service custom css file from the config.inc
if ($this->model->getConfig()->getCustomCss() !== null) {
Expand Down
8 changes: 0 additions & 8 deletions model/GlobalConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,6 @@ public function getServiceTagline()
return $this->getConstant('SERVICE_TAGLINE', null);
}

/**
* @return string
*/
public function getServiceLogo()
{
return $this->getConstant('SERVICE_LOGO', null);
}

/**
* @return string
*/
Expand Down
9 changes: 0 additions & 9 deletions tests/GlobalConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ public function testgetServiceTaglineDefaultValue() {
$this->assertEquals(null, $actual);
}

/**
* @covers GlobalConfig::getServiceLogo
* @covers GlobalConfig::getConstant
*/
public function testServiceLogoDefaultValue() {
$actual = $this->config->getServiceLogo();
$this->assertEquals(null, $actual);
}

/**
* @covers GlobalConfig::getCustomCss
* @covers GlobalConfig::getConstant
Expand Down

0 comments on commit 17456a2

Please sign in to comment.