Skip to content

Commit

Permalink
getColorboxScripts() code cleanup
Browse files Browse the repository at this point in the history
Reduced a few lines in getColorboxScripts() by eliminating an unneeded variable and removing a comment.
  • Loading branch information
PHLAK committed Oct 19, 2012
1 parent a1bc00d commit b74a351
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions resources/UberGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,11 @@ public function getColorboxStyles($themeNum) {
public function getColorboxScripts() {

// Set some path variables
$realtivePath = $this->_getRelativePath(getcwd(), $this->_appDir);
$templatePath = $this->_appDir . '/templates/colorboxScripts.php';

// Set ColorBox path
$colorboxPath = $realtivePath . '/colorbox/jquery.colorbox.js';
$colorboxPath = $this->_getRelativePath(getcwd(), $this->_appDir) . '/colorbox/jquery.colorbox.js';

// Get the template contents
$template = $this->_readTemplate($templatePath, array('path' => $colorboxPath);
$template = $this->_readTemplate($templatePath, array('path' => $colorboxPath);

// Return the include text
return $template;
Expand Down

0 comments on commit b74a351

Please sign in to comment.