diff -r 5c2b18c35bc6b48705508774a9b5bf7f74514f6f -r 23012f799d08bdf7531e8c8d92044fb6763ecbd3 indefero/src/IDF/templates/idf/base.html --- a/indefero/src/IDF/templates/idf/base.html Thu Oct 30 21:06:13 2014 -0500 +++ b/indefero/src/IDF/templates/idf/base.html Wed Dec 03 22:45:42 2014 -0600 @@ -82,6 +82,7 @@

{block titleicon}{/block}{block title}{$page_title}{/block}


+
@@ -208,6 +209,34 @@ }); + function lineWrap(){ + var wrap = function () { + var elems = document.getElementsByClassName('syntaxhighlighter'); + for (var j = 0; j < elems.length; ++j) { + var sh = elems[j]; + var gLines = sh.getElementsByClassName('gutter')[0].getElementsByClassName('line'); + var cLines = sh.getElementsByClassName('code')[0].getElementsByClassName('line'); + var stand = 15; + for (var i = 0; i < gLines.length; ++i) { + var h = $(cLines[i]).height(); + if (h != stand) { + console.log(i); + gLines[i].setAttribute('style', 'height: ' + h + 'px !important;'); + } + } + } + }; + var whenReady = function () { + if ($('.syntaxhighlighter').length === 0) { + setTimeout(whenReady, 800); + } else { + wrap(); + } + }; + whenReady(); + }; + lineWrap(); + $(window).resize(function(){lineWrap()}); {/literal} diff -r 5c2b18c35bc6b48705508774a9b5bf7f74514f6f -r 23012f799d08bdf7531e8c8d92044fb6763ecbd3 pluf/src/Pluf/HTTP/URL.php --- a/pluf/src/Pluf/HTTP/URL.php Thu Oct 30 21:06:13 2014 -0500 +++ b/pluf/src/Pluf/HTTP/URL.php Wed Dec 03 22:45:42 2014 -0600 @@ -62,8 +62,8 @@ if (isset($_GET['_pluf_action'])) { return $_GET['_pluf_action']; } - return (isset($_SERVER['PATH_INFO'])) ? - $_SERVER['PATH_INFO'] : '/'; + return (isset($_SERVER['REDIRECT_URL'])) ? + $_SERVER['REDIRECT_URL'] : '/'; } } diff -r 5c2b18c35bc6b48705508774a9b5bf7f74514f6f -r 23012f799d08bdf7531e8c8d92044fb6763ecbd3 pluf/src/Pluf/Translation.php --- a/pluf/src/Pluf/Translation.php Thu Oct 30 21:06:13 2014 -0500 +++ b/pluf/src/Pluf/Translation.php Wed Dec 03 22:45:42 2014 -0600 @@ -70,7 +70,7 @@ public static function getLocale() { - return $GLOBALS['_PX_current_locale']; + return (isset($GLOBALS['_PX_current_locale'])) ? $GLOBALS['_PX_current_locale'] : "en"; } /**