]> git.mxchange.org Git - friendica.git/blobdiff - library/Smarty/libs/sysplugins/smarty_internal_get_include_path.php
reverting tinymce changes, updating smarty to 3.1.19
[friendica.git] / library / Smarty / libs / sysplugins / smarty_internal_get_include_path.php
index 518c406aa519096fb826afb553613f3e535df34d..d46ca70290585e554033ca547e458a342067998c 100644 (file)
@@ -1,48 +1,46 @@
-<?php\r
-/**\r
- * Smarty read include path plugin\r
- *\r
- * @package Smarty\r
- * @subpackage PluginsInternal\r
- * @author Monte Ohrt\r
- */\r
-\r
-/**\r
- * Smarty Internal Read Include Path Class\r
- *\r
- * @package Smarty\r
- * @subpackage PluginsInternal\r
- */\r
-class Smarty_Internal_Get_Include_Path {\r
-\r
-    /**\r
-     * Return full file path from PHP include_path\r
-     *\r
-     * @param string $filepath filepath\r
-     * @return string|boolean full filepath or false\r
-     */\r
-    public static function getIncludePath($filepath)\r
-    {\r
-        static $_include_path = null;\r
-        \r
-        if (function_exists('stream_resolve_include_path')) {\r
-            // available since PHP 5.3.2\r
-            return stream_resolve_include_path($filepath);\r
-        }\r
-\r
-        if ($_include_path === null) {\r
-            $_include_path = explode(PATH_SEPARATOR, get_include_path());\r
-        }\r
-\r
-        foreach ($_include_path as $_path) {\r
-            if (file_exists($_path . DS . $filepath)) {\r
-                return $_path . DS . $filepath;\r
-            }\r
-        }\r
-\r
-        return false;\r
-    }\r
-\r
-}\r
-\r
-?>
\ No newline at end of file
+<?php
+/**
+ * Smarty read include path plugin
+ *
+ * @package    Smarty
+ * @subpackage PluginsInternal
+ * @author     Monte Ohrt
+ */
+
+/**
+ * Smarty Internal Read Include Path Class
+ *
+ * @package    Smarty
+ * @subpackage PluginsInternal
+ */
+class Smarty_Internal_Get_Include_Path
+{
+    /**
+     * Return full file path from PHP include_path
+     *
+     * @param  string $filepath filepath
+     *
+     * @return string|boolean full filepath or false
+     */
+    public static function getIncludePath($filepath)
+    {
+        static $_include_path = null;
+
+        if (function_exists('stream_resolve_include_path')) {
+            // available since PHP 5.3.2
+            return stream_resolve_include_path($filepath);
+        }
+
+        if ($_include_path === null) {
+            $_include_path = explode(PATH_SEPARATOR, get_include_path());
+        }
+
+        foreach ($_include_path as $_path) {
+            if (file_exists($_path . DS . $filepath)) {
+                return $_path . DS . $filepath;
+            }
+        }
+
+        return false;
+    }
+}