Permalink
Browse files

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

…SViewer::setOption()
  • Loading branch information...
1 parent ad13f80 commit 6d6fdd24d9b4c19c33c64198528fea164f1af2d0 @chillu chillu committed Oct 17, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 core/SSViewer.php
View
@@ -235,6 +235,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 6d6fdd2

Please sign in to comment.