Skip to content
Permalink
Browse files

ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to S…

…SViewer::setOption()
  • Loading branch information...
chillu committed Oct 17, 2011
1 parent 52a895f commit 8113e9ce84433ab5424a716ee9f5fdc02d32c210
Showing with 9 additions and 0 deletions.
  1. +9 −0 core/SSViewer.php
@@ -204,6 +204,15 @@ static function hasTemplate($templateList) {
public static function setOption($optionName, $optionVal) {
SSViewer::$options[$optionName] = $optionVal;
}
/**
* @param String
* @return Mixed
*/
static function getOption($optionName) {
return SSViewer::$options[$optionName];
}
protected static $options = array(
'rewriteHashlinks' => true,
);

0 comments on commit 8113e9c

Please sign in to comment.
You can’t perform that action at this time.