Skip to content

Commit

Permalink
Allow override less for rtl in base theme
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhlh committed Jul 30, 2014
1 parent b5c2d41 commit ca9e285
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/plg_system_t3/includes/core/less.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,13 @@ public static function parse($path) {
}
} else {
$list [$import_url] = $chunk;
// rtl override
if ($is_rtl) {
$rtl_url = preg_replace ('/\/less\//', '/less/rtl/', $import_url);
if (is_file(JPATH_ROOT.'/'.$rtl_url)) {
$rtl_list [$rtl_url] = T3Path::relativePath(dirname($path), $rtl_url);
}
}
}
} else {
$import = true;
Expand Down

0 comments on commit ca9e285

Please sign in to comment.