Skip to content

Commit

Permalink
enabling css.php files to work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Jul 11, 2023
1 parent c181eb5 commit f07c62a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/admin/css/eapSorter.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

// we need to know if we are serving a RTL language so we can flip some heading
// items
header("Content-Type:text/css");
require_once dirname(dirname(dirname(__DIR__))) . "/config/_config.php";

$langInstance = new core\common\Language();
$start = $langInstance->rtl ? "right" : "left";
$end = $langInstance->rtl ? "left" : "right";
Expand Down
2 changes: 2 additions & 0 deletions web/admin/css/silverbullet.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

// we need to know if we are serving a RTL language so we can flip some heading
// items
header("Content-Type:text/css");
require_once dirname(dirname(dirname(__DIR__))) . "/config/_config.php";
$langInstance = new core\common\Language();
$start = $langInstance->rtl ? "right" : "left";
$end = $langInstance->rtl ? "left" : "right";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* License: see the web/copyright.inc.php file in the file structure or
* <base_url>/copyright.php after deploying the software
*/
header("Content-Type:text/css");
require_once dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))) . "/config/_config.php";
$langInstance = new core\common\Language();
$start = $langInstance->rtl ? "right" : "left";
?>
Expand Down
1 change: 1 addition & 0 deletions web/skins/modern/resources/css/cat-user.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* License: see the web/copyright.inc.php file in the file structure or
* <base_url>/copyright.php after deploying the software
*/
header("Content-Type:text/css");
require dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . "/config/_config.php";
$langInstance = new core\common\Language();
$start = $langInstance->rtl ? "right" : "left";
Expand Down

0 comments on commit f07c62a

Please sign in to comment.