Skip to content

Commit

Permalink
css url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed May 28, 2024
1 parent 72c719f commit d92e65a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/ExamplesConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Tpay\Example;

use Tpay\OpenApi\Loader;
use Tpay\OpenApi\Utilities\Util;

class ExamplesConfig
{
Expand All @@ -16,6 +17,7 @@ class ExamplesConfig

public function __construct()
{
Util::$libraryPath='/src/';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Util
public static function parseTemplate($templateFileName, $data = [])
{
if (is_null(static::$libraryPath)) {
$data['static_files_url'] = '/src/';
$data['static_files_url'] = '../../';
} else {
$data['static_files_url'] = static::$libraryPath;
}
Expand Down

0 comments on commit d92e65a

Please sign in to comment.