@@ -98,7 +98,7 @@ public function zipDirectory($directory) {
98
98
$ filename_no_ext = basename ($ directory );
99
99
100
100
if ($ directory == '. ' ) {
101
- $ filename_no_ext = ' woytu Soft ' ;
101
+ $ filename_no_ext = $ this -> _config [ ' web_title ' ] ;
102
102
}
103
103
104
104
// We deliver a zip file
@@ -194,7 +194,7 @@ public function listBreadcrumbs($directory = null) {
194
194
// 静态设置主页路径
195
195
$ breadcrumbsArray [] = array (
196
196
'link ' => $ this ->_appURL ,
197
- 'text ' => ' woytu Soft '
197
+ 'text ' => $ this -> _config [ ' web_title ' ]
198
198
);
199
199
200
200
// Generate breadcrumbs
@@ -257,9 +257,9 @@ public function containsIndex($dirPath) {
257
257
258
258
259
259
/**
260
- * Get path of the listed directory
260
+ * 获取列出的目录的路径
261
261
*
262
- * @return string Path of the listed directory
262
+ * @return string 列出目录的路径
263
263
* @access public
264
264
*/
265
265
public function getListedPath () {
@@ -277,7 +277,7 @@ public function getListedPath() {
277
277
278
278
279
279
/**
280
- * Returns the theme name.
280
+ * 返回主题名称。
281
281
*
282
282
* @return string Theme name
283
283
* @access public
@@ -289,9 +289,9 @@ public function getThemeName() {
289
289
290
290
291
291
/**
292
- * Returns open links in another window
292
+ * 返回另一个窗口中的打开链接
293
293
*
294
- * @return boolean Returns true if in config is enabled open links in another window, false if not
294
+ * @return boolean 如果在启用配置中打开另一个窗口中的链接,则返回true,否则返回false
295
295
* @access public
296
296
*/
297
297
public function externalLinksNewWindow () {
@@ -438,18 +438,29 @@ public function getDirectoryPath() {
438
438
return $ this ->_directory ;
439
439
}
440
440
441
+ /**
442
+ * 获取配置
443
+ *
444
+ * @param string $text 配置名称
445
+ * @return string config 配置值
446
+ * @access public
447
+ */
448
+ public function getConfig ($ text ) {
449
+ return $ this ->_config [$ text ];
450
+ }
451
+
441
452
442
453
/**
443
- * Add a message to the system message array
454
+ * 将消息添加到系统消息数组
444
455
*
445
- * @param string $type The type of message (ie - error, success, notice, etc.)
446
- * @param string $message The message to be displayed to the user
456
+ * @param string $type 消息的类型 (ie - error, success, notice, etc.)
457
+ * @param string $message 要显示给用户的消息
447
458
* @return bool true on success
448
459
* @access public
449
460
*/
450
461
public function setSystemMessage ($ type , $ text ) {
451
462
452
- // Create empty message array if it doesn't already exist
463
+ // 创建空消息数组(如果它尚不存在)
453
464
if (isset ($ this ->_systemMessage ) && !is_array ($ this ->_systemMessage )) {
454
465
$ this ->_systemMessage = array ();
455
466
}
@@ -916,4 +927,4 @@ protected function _getRelativePath($fromPath, $toPath) {
916
927
917
928
}
918
929
919
- }
930
+ }
0 commit comments