Skip to content

Commit

Permalink
- Updated library classes
Browse files Browse the repository at this point in the history
- Stopped using composer for htmlawed
  • Loading branch information
mystralkk committed May 3, 2019
1 parent d863d3a commit 1b6db37
Show file tree
Hide file tree
Showing 48 changed files with 619 additions and 6,809 deletions.
4 changes: 3 additions & 1 deletion system/classes/gltext.class.php
Expand Up @@ -2,7 +2,7 @@

/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
// | Geeklog 2.1 |
// | Geeklog 2.2 |
// +---------------------------------------------------------------------------+
// | gltext.class.php |
// | |
Expand All @@ -29,6 +29,8 @@
// | |
// +---------------------------------------------------------------------------+

require_once __DIR__ . '/htmLawed/htmLawed.php';

/**
* Constants for GLText
* Version of GLText engine
Expand Down
1 change: 0 additions & 1 deletion system/composer.json
Expand Up @@ -10,7 +10,6 @@
"pear/net_url2": "~2.2",
"pear/http_request2": "~2.3.0",
"splitbrain/php-archive": "1.0.9",
"htmlawed/htmlawed": "~1.0",
"swiftmailer/swiftmailer": "~5",
"phpclasses/oauth-api": "^1.0",
"robthree/twofactorauth": "^1.6",
Expand Down
124 changes: 36 additions & 88 deletions system/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions system/vendor/bin/minifycss
Expand Up @@ -2,9 +2,13 @@

dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../matthiasmullie/minify/bin" && pwd)

if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
if [ -d /proc/cygdrive ]; then
case $(which php) in
$(readlink -n /proc/cygdrive)/*)
# We are in Cygwin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
;;
esac
fi

"${dir}/minifycss" "$@"
10 changes: 7 additions & 3 deletions system/vendor/bin/minifyjs
Expand Up @@ -2,9 +2,13 @@

dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../matthiasmullie/minify/bin" && pwd)

if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
if [ -d /proc/cygdrive ]; then
case $(which php) in
$(readlink -n /proc/cygdrive)/*)
# We are in Cygwin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
;;
esac
fi

"${dir}/minifyjs" "$@"
8 changes: 4 additions & 4 deletions system/vendor/composer/ClassLoader.php
Expand Up @@ -279,7 +279,7 @@ public function isClassMapAuthoritative()
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}

/**
Expand Down Expand Up @@ -377,11 +377,11 @@ private function findFileWithExtension($class, $ext)
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
$length = $this->prefixLengthsPsr4[$first][$search];
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
Expand Down

0 comments on commit 1b6db37

Please sign in to comment.