33 * @package Template Framework for Joomla!+
44 * @author Cristina Solana http://nightshiftcreative.com
55 * @author Matt Thomas http://construct-framework.com | http://betweenbrain.com
6- * @copyright Copyright (C) 2009 - 2013 Matt Thomas. All rights reserved.
6+ * @copyright Copyright (C) 2009 - 2014 Matt Thomas. All rights reserved.
77 * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
88 */
99
224224
225225#-------------------------------- Item ID ---------------------------------#
226226
227- $ itemId = $ jinput ->get ('Itemid ' , 0 );
227+ $ itemId = $ jinput ->get ('Itemid ' );
228228
229229#------------------------------- Article ID -------------------------------#
230230
231231if ($ view == 'article ' ) {
232- $ articleId = $ jinput ->get ('id ' );
232+ $ articleId = $ jinput ->get ('id ' , '' , ' INT ' );
233233} else {
234234 ($ articleId = NULL );
235235}
@@ -240,18 +240,17 @@ function getCategory($id) {
240240 $ app = JFactory::getApplication ();
241241 $ database = JFactory::getDBO ();
242242 $ jinput = $ app ->input ;
243- if (($ jinput ->get ('view ' , 0 ) == "category " ) || ($ jinput ->get ('view ' , 0 ) == "categories " )) {
243+ if (($ jinput ->get ('view ' ) == "category " ) || ($ jinput ->get ('view ' ) == "categories " )) {
244244 return $ id ;
245- } elseif ($ jinput ->get ('view ' , 0 ) == "article " ) {
246- $ temp = explode (": " , $ id );
247- $ sql = "SELECT catid FROM #__content WHERE id = " . $ temp [0 ];
245+ } elseif ($ jinput ->get ('view ' ) == "article " ) {
246+ $ sql = "SELECT catid FROM #__content WHERE id = " . $ id ;
248247 $ database ->setQuery ($ sql );
249248
250249 return $ database ->loadResult ();
251250 }
252251}
253252
254- $ catId = getCategory ($ jinput ->get ('id ' ));
253+ $ catId = getCategory ($ jinput ->get ('id ' , '' , ' INT ' ));
255254
256255#------------------------- Ancestor Category IDs --------------------------#
257256
@@ -404,22 +403,22 @@ function getAncestorCategories($id) {
404403// Load core Bootstrap CSS and Bootstrap bugfixes using class loader method. See http://docs.joomla.org/JHtml::_/11.1
405404 JHtmlBootstrap::loadCss ($ includeMaincss = TRUE , $ this ->direction );
406405// Load additonal Bootstruct core CSS
407- $ doc ->addStyleSheet ($ template . '/css/bootstruct.css? ' . $ version, ' text/css ' , ' screen ' );
406+ $ doc ->addStyleSheet ($ template . '/css/bootstruct.css? ' . $ version );
408407}
409408
410409if ($ gridSystem > -1 ) {
411- $ doc ->addStyleSheet ($ template . '/css/grids/ ' . $ gridSystem . '? ' . $ version, ' text/css ' , ' screen ' );
410+ $ doc ->addStyleSheet ($ template . '/css/grids/ ' . $ gridSystem . '? ' . $ version );
412411}
413412if ($ customStyleSheet > -1 ) {
414- $ doc ->addStyleSheet ($ template . '/css/ ' . $ customStyleSheet . '? ' . $ customStyleSheetVersion, ' text/css ' , ' screen ' );
413+ $ doc ->addStyleSheet ($ template . '/css/ ' . $ customStyleSheet . '? ' . $ customStyleSheetVersion );
415414}
416415if ($ this ->direction == 'rtl ' ) {
417- $ doc ->addStyleSheet ($ template . '/css/rtl.css? ' . $ version, ' text/css ' , ' screen ' );
416+ $ doc ->addStyleSheet ($ template . '/css/rtl.css? ' . $ version );
418417}
419418// Override style sheet returned from our template helper
420419$ cssFile = $ styleOverride ->getIncludeFile ();
421420if ($ cssFile ) {
422- $ doc ->addStyleSheet ($ cssFile . '? ' . $ version, ' text/css ' , ' screen ' );
421+ $ doc ->addStyleSheet ($ cssFile . '? ' . $ version );
423422}
424423
425424// Typography
0 commit comments