Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] addStyleSheet - addScript: files not loaded

[FIXED] addStyleSheet - addScript: files not loaded 11 Jun 2013 13:47 #7417

  • Tomaselli
  • Tomaselli's Avatar
  • Online
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
today I did my first test on j.cook 2.5
here the first thing I found.

Scenario:
  • jcook component on a fresh joomla 3 installation.
  • localhost
  • windows 8
  • uniserver



missing files, not loaded from the jcook helper.
functions involved:
protected static function addScript($doc, $base, $file, $replace = true)

and
protected static function addStyleSheet($doc, $base, $file, $replace = true)

the lines 59 and 88 of helper.php:
$url = JURI::root(true) . '/' . $base . '/' . str_replace(DS, '/', $file);

should be replaced by:
		$url = JURI::root(true) . '/' . $base . '/' . $file;
		$url = str_replace(DS, '/', $url);

and the lines 63 and 91:
$urlFork = JURI::root(true) . '/' . $base . '/fork/' . str_replace(DS, '/', $file);

should be replaced by:
			$urlFork = JURI::root(true) . '/' . $base . '/fork/' . $file;
			$urlFork = str_replace(DS, '/', $urlFork);
The administrator has disabled public write access.

Re: addStyleSheet - addScript: files not loaded 11 Jun 2013 15:44 #7422

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.

thank you very much.

K++;
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.052 seconds

Get Started