Skip to content

Commit

Permalink
Tweaked getColorboxScripts() function syntax
Browse files Browse the repository at this point in the history
Improved readability of the getColorboxScripts() template fetching syntax.
  • Loading branch information
PHLAK committed Oct 19, 2012
1 parent 314faa9 commit a1bc00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/UberGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ public function getColorboxScripts() {
$templatePath = $this->_appDir . '/templates/colorboxScripts.php';

// Set ColorBox path
$data['path'] = $realtivePath . '/colorbox/jquery.colorbox.js';
$colorboxPath = $realtivePath . '/colorbox/jquery.colorbox.js';

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

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

0 comments on commit a1bc00d

Please sign in to comment.