File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Piwigo URL Uploader
2+
3+ * Internal name: ` url_uploader ` (directory name in ` plugins/ ` )
4+ * Plugin page: http://piwigo.org/ext/extension_view.php?eid=668
5+ * Translation: http://piwigo.org/translate/project.php?project=url_uploader
Original file line number Diff line number Diff line change 1010
1111defined ('PHPWG_ROOT_PATH ' ) or die ('Hacking attempt! ' );
1212
13+ if (basename (dirname (__FILE__ )) != 'url_uploader ' )
14+ {
15+ add_event_handler ('init ' , 'urluploader_error ' );
16+ function urluploader_error ()
17+ {
18+ global $ page ;
19+ $ page ['errors ' ][] = 'URL Uploader folder name is incorrect, uninstall the plugin and rename it to "url_uploader" ' ;
20+ }
21+ return ;
22+ }
23+
1324
14- define ('URLUPLOADER_ID ' , basename (dirname (__FILE__ )));
15- define ('URLUPLOADER_PATH ' , PHPWG_PLUGINS_PATH . URLUPLOADER_ID . '/ ' );
16- define ('URLUPLOADER_ADMIN ' , get_root_url () . 'admin.php?page=plugin- ' . URLUPLOADER_ID );
25+ define ('URLUPLOADER_PATH ' , PHPWG_PLUGINS_PATH . 'url_uploader/ ' );
26+ define ('URLUPLOADER_ADMIN ' , get_root_url () . 'admin.php?page=plugin-url_uploader ' );
1727
1828
1929if (defined ('IN_ADMIN ' ))
You can’t perform that action at this time.
0 commit comments