Skip to content
This repository
Browse code

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

…SViewer::setOption()
  • Loading branch information...
commit 6d6fdd24d9b4c19c33c64198528fea164f1af2d0 1 parent ad13f80
Ingo Schommer authored October 17, 2011

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  core/SSViewer.php
9  core/SSViewer.php
@@ -235,6 +235,15 @@ static function hasTemplate($templateList) {
235 235
 	public static function setOption($optionName, $optionVal) {
236 236
 		SSViewer::$options[$optionName] = $optionVal;
237 237
 	}
  238
+	
  239
+	/**
  240
+	 * @param String
  241
+	 * @return Mixed
  242
+	 */
  243
+	static function getOption($optionName) {
  244
+		return SSViewer::$options[$optionName];
  245
+	}
  246
+	
238 247
 	protected static $options = array(
239 248
 		'rewriteHashlinks' => true,
240 249
 	);

0 notes on commit 6d6fdd2

Please sign in to comment.
Something went wrong with that request. Please try again.