summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rwxr-xr-xapp/l10n/extract.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/l10n/extract.php b/app/l10n/extract.php
index 878de4e..1384827 100755
--- a/app/l10n/extract.php
+++ b/app/l10n/extract.php
@@ -13,12 +13,13 @@
* The script scans for the files in the l10n/ folder to know which locales are supported
*/
-// released versions of moonmoon should immediately return for security
-// return;
-
$root = __DIR__ . '/../../';
-require_once $root.'/vendors/autoload.php';
+require_once __DIR__ . '/../app.php';
+
+if ($conf['debug'] !== true) {
+ die('Please enable the debug mode to use extract.php.');
+}
$GLOBALS['english'] = array();
@@ -28,7 +29,6 @@ $GLOBALS['english'] = array();
*
*/
-
function extract_l10n_strings($file) {
$lines = file($file);
$patterns = array('/_g\([\'"](.*?)[\'"]\)/', '/getString\([\'"](.*?)[\'"]\)/',);