Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Create missing directories too.

  • Loading branch information...
commit 33c35e6c30e0430dbf63d979f3d9f9ae524d589d 1 parent 1ca9c0a
paca70 authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 admin/langdoc.php
View
11 admin/langdoc.php
@@ -112,6 +112,17 @@
if (!empty($currentfile)) {
if (!file_exists("$langdir/$currentfile")) {
+ //check if directory exist
+ $pathparts = explode('/',$currentfile);
+ $checkpath = $langdir;
+ for ($a=0; $a < count($pathparts)-1 ; $a++) {
+ $checkpath .= "/".$pathparts[$a];
+ if(!file_exists($checkpath)){
+ if(!mkdir($checkpath)){
+ echo ("Cannot create directory: $checkpath");
+ }
+ }
+ }
//
// file doesn't exist - let's check webserver's permission to create it
//

0 comments on commit 33c35e6

Please sign in to comment.
Something went wrong with that request. Please try again.